[ldns-users] drill -I

Bryan Duff bduff at ecessa.com
Thu Feb 6 16:04:00 UTC 2014


Looks like even being more explicit fails as well:
# drill -6 @2001:4860:4860::8888 -I 2001:X:..:X::2 ipv6.google.com

This works - forcing IPv6.

-Bryan

On 02/06/2014 07:56 AM, Leo Baltus wrote:
> 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?
>




More information about the ldns-users mailing list