dig @ipv6-address

Christian Weiske cweiske at cweiske.de
Thu Nov 29 11:21:31 UTC 2018


Hello,


I'm trying to use dig version 9.10.3 to test my local DNS
server which listens on IPv6 only.

I only get an error when running dig:

> $ dig @2a01:488:66:1000:53a9:2dde:0:1 cweiske.de
> couldn't get address for '2a01:488:66:1000:53a:53': not found

So how can I specify an IPv6 address in the "@" server parameter?


----

I found the same question in the mailing list archive of 2013;
https://lists.isc.org/mailman/htdig/bind-users/2013-August/091479.html

The solution there was to not only pass the IPv6 address, but also the
network interface name.

This unfortunately does not seem to work anymore:

> $ ifconfig venet0
> venet0: flags=211<UP,BROADCAST,POINTOPOINT,RUNNING,NOARP>  mtu 1500
>  inet 127.0.0.1  netmask 255.255.255.255  broadcast 0.0.0.0  destination 127.0.0.1
>  inet6 ::2  prefixlen 128  scopeid 0x80<compat,global>
>  inet6 2a01:488:66:1000:53a9:2dde:0:1  prefixlen 128  scopeid
>  0x0<global>
> 
> $ dig @2a01:488:66:1000:53a:53%venet0 cweiske.de
> dig: couldn't get address for '2a01:488:66:1000:53a:53%venet0': not
> found

----

What works is adding an IPv6-only entry to /etc/hosts and then using
that as hostname in @:

> $ grep ahso3- /etc/hosts
> 83.169.45.222 ahso3-ipv4
> 2a01:488:66:1000:53a9:2dde:0:1 ahso3-ipv6
> 
> $ dig @ahso3-ipv6 +short AAAA cweiske.de
> 2a01:488:66:1000:523:f116:0:1

But this is just a workaround.

How can I specify an IPv6 address in the @ server parameter of dig?

-- 
Regards/Mit freundlichen Grüßen
Christian Weiske

-=≡ Geeking around in the name of science since 1982 ≡=-


More information about the bind-users mailing list