8.2.1: wrong master address in slave zone header comment
Juergen Georgi
georgi at belwue.de
Thu Aug 12 15:09:08 UTC 1999
On slave 129.143.2.4 I get the comment
; from 129.143.2.4:53 (local 129.143.2.4) using AXFR at Wed Aug 11 09:59:39 1999
Don't ask me why, but inet_ntoa(local.sin_addr) in fprintf() messes up
the master's address (Solaris-2.6, gcc).
As a work-around:
*** named-xfer.c~ Thu Aug 12 15:01:57 1999
--- named-xfer.c Thu Aug 12 16:58:42 1999
***************
*** 1187,1194 ****
"; zone '%s' last serial %u\n":
"; zone '%s' first transfer\n",
domain, serial_no);
! fprintf(dbfp, "; from %s:%d (local %s) using %s at %s",
! inet_ntoa(sin.sin_addr), ntohs(sin.sin_port),
inet_ntoa(local.sin_addr),
(methode == ISIXFR) ? "IXFR":"AXFR",
ctimel(tt.tv_sec));
--- 1187,1195 ----
"; zone '%s' last serial %u\n":
"; zone '%s' first transfer\n",
domain, serial_no);
! fprintf(dbfp, "; from %s:%d", inet_ntoa(sin.sin_addr),
! ntohs(sin.sin_port));
! fprintf(dbfp, " (local %s) using %s at %s",
inet_ntoa(local.sin_addr),
(methode == ISIXFR) ? "IXFR":"AXFR",
ctimel(tt.tv_sec));
More information about the bind-workers
mailing list