Reputation: 103
I am testing bind9 dns server for AAAA records. I would like to disable IPv4 to stop dns requests going to my default ipv4 dns server.
In the resolv.conf i have added
domain mydomain.com
nameserver xxxx:xxxx:xxxx:xxxx:xxxx::xxxx
search mydomain.com
When I try to call
getaddrinfo("mydomain.com",NULL,&hints,&res);
to resolve the domain name to IPv6 address , I see error message "No Route to Host".
The same program can resolve to IPv6 address when i run on the Ubuntu PC.
I have tried to test
nslookup mydomain.com
server: 10.1.xx.xx
address 1: 10.1.xx.xx dnsserver.com
nslookup: can't resolve 'mydomain.com'
The nslookup command works correctly on Linux PC.
Is there any thing additional I need to do in the /etc/network. or else where?
Edit:
The issue is resolved with changes in the bind9 reverse zone configuration file.
Upvotes: 1
Views: 1007