Bug 343 - nsdc update does not work well with IPv6
nsdc update does not work well with IPv6
Status: RESOLVED FIXED
Product: NSD
Classification: Unclassified
Component: NSD Code
3.2.x
i386 Linux
: P5 minor
Assigned To: NSD team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-29 10:08 CET by Marco Davids
Modified: 2011-01-05 11:52 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Davids 2010-12-29 10:08:47 CET
'nsdc update' in an IPv6 enabled environment doesn't work. Here's the situation:

nsd.conf:

   allow-notify: 127.0.0.1 NOKEY
   allow-notify: ::1 NOKEY

Then 'nsdc update' executes this:

nsd-notify  -a 192.0.2.1 -p 53 -z example.net ::1

which results in the error, because of a mix-up of IPv4 and IPv6:

[1293613087] nsd-notify[8213]: warning: no local address family matches remote address family, skipping server '::1'

Also...
Please note that -a isn't 127.0.0.1 (as expected). The address used is the global IP-address at eth0. Not sure why this is, but it was easy to fix with:

   allow-notify: 192.0.2.1 NOKEY

So that is not a real issue, just a remark.
Comment 1 Matthijs Mekking 2011-01-05 11:52:45 CET
Fixed in trunk. nsdc update picked the wrong parameter for -a.
Thanks for the report