[getdns-api] link-local recursive name server addresses
Tony Finch
dot at dotat.at
Tue Jul 1 19:43:09 CEST 2014
Thomas Schäfer reported an interesting bug on the ipv6-ops list:
http://lists.cluenet.de/pipermail/ipv6-ops/2014-July/010032.html
The problem occurs when /etc/resolv.conf contains a link-local nameserver
address, which necessarily includes a scope so that the address is
associated with the correct interface.
Some stub resolver libraries fail to parse the scope - usually they ignore
the scope rather than failing, but this results in the wrong interface
index in the eventual sockaddr, so the resolver ends up unable to talk to
its server.
The interestingly awkward thing about this bug is that it implies that you
cannot use a simple IPv6 address (e.g. AAAA RDATA) to represent a stub
resolver's name server addresses. Unfortunately the getdns API assumes
that you can; to fix this it needs to learn about scoped addresses.
Tony.
--
f.anthony.n.finch <dot at dotat.at> http://dotat.at/
Irish Sea: Variable 4, becoming south or southwest 5 or 6. Slight, becoming
moderate. Mainly fair. Good.
-------------- next part --------------
_______________________________________________
getdns-api mailing list
getdns-api at vpnc.org
More information about the spec
mailing list