nsd 3.0.2 complains if no -a and no ip-address:
Wouter Wijngaards
wouter at NLnetLabs.nl
Wed Nov 29 09:10:30 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Koh-ichi Ito wrote:
> Here it is.
>
> ingram2# /proj/nsd-3.0.2/sbin/nsdc start
> [1164788497] nsd[97639]: error: cannot parse address '(null)': getaddrinfo: Address family for hostname not supported
Oh. What happens is that NSD tries to open by default a ip4 and ip6
socket. And the ip6 is not supported.
On linux/solaris, the getaddrinfo works, but socket creation fails if no
ip6 is configured for an interface.
Your version will work using the -4 option or ip4-only: yes
The patch below should provide automatic fallback to ip4 for you. Could
you test this too and tell me if that provides a working fallback for you?
Best regards,
Wouter
> BTW, I have no experience of using subversion. How can I
> apply this patch? my 'patch' is
>
> kohi at ingram2[4]% patch --version
> Patch version 2.1
>
> And I did it by hand this time.
Use patch -p0 < patchfile
Index: nsd.c
===================================================================
- --- nsd.c (revision 2507)
+++ nsd.c (working copy)
@@ -639,6 +639,11 @@
hints[i].ai_socktype = SOCK_DGRAM;
if ((r=getaddrinfo(nodes[i], udp_port, &hints[i],
&nsd.udp[i].addr)) != 0) {
+#ifdef INET6
+ if(nsd.grab_ip6_optional && hints[0].ai_family
== AF_INET6
+ && r == EAI_ADDRFAMILY)
+ continue;
+#endif
error("cannot parse address '%s': getaddrinfo:
%s %s",
nodes[i]?nodes[i]:"(null)",
gai_strerror(r),
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFFbU6GkDLqNwOhpPgRAklOAJ4iM510anPG1GFKHosx2ex1SA0VIQCeNo6D
PPo4innXeUdxPyPEgoqr6v4=
=/JlA
-----END PGP SIGNATURE-----
More information about the nsd-users
mailing list