Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 590548 - net-dns/djbdns-1.05-r30 : dnscache nested CNAME lookup failure
Summary: net-dns/djbdns-1.05-r30 : dnscache nested CNAME lookup failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-05 12:40 UTC by John Stile
Modified: 2016-08-27 16:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Strace dig against my -31 dnscachex (dnscachex-www.mouser.com.txt,23.71 KB, text/plain)
2016-08-15 15:29 UTC, John Stile
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Stile 2016-08-05 12:40:36 UTC
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
Comment 1 Michael Orlitzky gentoo-dev 2016-08-05 13:46:07 UTC
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...
Comment 2 John Stile 2016-08-15 15:29:53 UTC
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
Comment 3 John Stile 2016-08-15 15:43:17 UTC
Sorry. that last attachment was useless (strace of dig rather than dnscache.

Trying to figure out how to get a good strace.
Comment 4 Michael Orlitzky gentoo-dev 2016-08-22 19:46:08 UTC
Soooooo the bug is still present in -r31?
Comment 5 John Stile 2016-08-27 16:00:49 UTC
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.
Comment 6 Michael Orlitzky gentoo-dev 2016-08-27 16:07:22 UTC
Oh, good =)