net-dns/djbdns - dnscache CNAME chain lookup problem Example: For domains that have deep CNAME resolution to an A record dnscache does not work. Two solutions have been found here: https://bugs.contribs.org/show_bug.cgi?id=8362 https://forum.openwrt.org/viewtopic.php?id=40863 Example of failing djbdns dnscache, where 192.168.0.60 is my server COMMAND: dig @192.168.0.60 +noall +ans -t a www.mouser.com OUTPUT: ;; connection timed out; no servers could be reached Example of a working dns server: COMMAND: dig @8.8.8.8 +noall +ans -t a www.mouser.com OUTPUT: www.mouser.com. 199 IN CNAME lb02.mouser.com. lb02.mouser.com. 49 IN CNAME wildcard.mouser.com.edgekey.net. wildcard.mouser.com.edgekey.net. 294 IN CNAME e1918.b.akamaiedge.net. e1918.b.akamaiedge.net. 19 IN A 23.210.246.97
I just pushed a new revision (-r31) to the tree that I hope fixes this. The OpenWrt patch didn't apply cleanly on top of our pile of existing patches, so I tried to make a new one myself that only contained the recursion depth adjustment. Can you give it a try and let me know if it worked? I wasn't able to reproduce the issue in the first place, so I can't tell if it's fixed...
Created attachment 443398 [details] Strace dig against my -31 dnscachex strace -f -o dnscachex-www.mouser.com.txt dig @192.168.0.60 +noall +ans -t a www.mouser.com 2>&1
Sorry. that last attachment was useless (strace of dig rather than dnscache. Trying to figure out how to get a good strace.
Soooooo the bug is still present in -r31?
The patch did work. dig @192.168.0.60 +noall +ans -t a www.mouser.com www.mouser.com. 291 IN CNAME lb02.mouser.com. lb02.mouser.com. 141 IN CNAME wildcard.mouser.com.edgekey.net. wildcard.mouser.com.edgekey.net. 295 IN CNAME e12397.b.akamaiedge.net. e12397.b.akamaiedge.net. 20 IN A 23.211.2.91 Server using: [I] net-dns/djbdns Available versions: 1.05-r29 1.05-r30 (~)1.05-r31 {ipv6 selinux} Installed versions: 1.05-r31(08:58:01 PM 08/14/2016)(ipv6 -selinux) Homepage: http://cr.yp.to/djbdns.html Description: Collection of DNS client/server software Thank you.
Oh, good =)