Open sjakub opened 6 years ago
Oh, and it works just fine with the system resolver:
$ nslookup google.ca
Server: 2001:4860:4860::8888
Address: 2001:4860:4860::8888#53
Non-authoritative answer:
Name: google.ca
Address: 172.217.1.3
Name: google.ca
Address: 2607:f8b0:400b:80f::2003
I actually got the 'dns' app working, by calling
dns_resconf_setiface(resconf(), "::", 0);
I also tried resolve-stub method, which is more like what I use in my program. However, "./dns resolve-stub -q google.ca" also fails with v6 DNS server (by returning 0 addresses). Adding dns_resconf_setiface() call did not help :(
I confirm the same problem. Any chance getting it fixed?
Hi.
I cannot get it to work with IPv6 DNS servers. Is this supported? I am using current master.
When I set only v6 DNS servers in my resolv.conf, the demo app refused to work:
It works just fine with IPv4 DNS:
I also got it working in my application, by adding the DNS server name to hints with dns_hints_insert(), and using dns_res_submit() and dns_res_check(). It works if I provide IPv4 DNS address, but always returns 0 addresses when IPv6 DNS server is used.
I can also see that it creates an AF_INET socket in both cases, but only tries to call 'connect' when IPv4 DNS server is used.
Am I missing something?