[ldns-users] drill -I

Leo Baltus Leo.Baltus at omroep.nl
Thu Feb 6 13:56:02 UTC 2014


Hi,

ldns-1.6.17 now supports -I (thanks!), however it seems it does not
resolve the argument:

$ host qry2bns
qry2bns.omroep.nl has address 145.58.31.52
qry2bns.omroep.nl has IPv6 address 2a02:458:101:31::34

$ drill -D -T -I qry2bns -k root.key  foo.bar.com
;; Number of trusted keys: 1
-I must be (or resolve) to a valid IP[v6] address.

Also, it seems when given an IPv6 address, it tries to bind to an
IPv4 socket:

$ strace -f drill -D -T -I 2a02:458:101:31::34 -k root.key foo.bar.com
<snip>
socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 47
bind(47, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "2a02:458:101:31::34", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EAFNOSUPPORT (Address family not supported by protocol)

I guess PF_INET should be PF_INET6?

-- 
Leo Baltus, internetbeheerder
NPO ICT Internet Services
Bart de Graaffweg 2, 1217 ZL Hilversum
servicedesk at omroep.nl, 035-6773555



More information about the ldns-users mailing list