Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320857 - net-dns/djbdns-1.05-r23 IPv6 flag causing lame delegation
Summary: net-dns/djbdns-1.05-r23 IPv6 flag causing lame delegation
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-21 11:54 UTC by Jeremy Wohl
Modified: 2014-09-22 14:00 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Wohl 2010-05-21 11:54:49 UTC
Compiling net-dns/djbdns-1.05-r23 with the IPv6 USE flag results (eventually) in dnscache lame delegation for obviously valid zones, e.g. nstld.com, and random lookup failures.  I tested this on two heterogeneous amd64 systems, one with IPv6 addresses, the other not.  The failures sometimes occur immediately after daemon start, sometimes after many lookups.

Downgrading to -r22 or building -ipv6 made the problem disappear.
Comment 1 Michael Orlitzky gentoo-dev 2011-04-08 03:02:21 UTC
How adventurous are you feeling?

In -r23, the developer applied the ipv6 patch and then tried to manually rebase the two CVE fixes on top of that. I have an overlay here:

  http://michael.orlitzky.com/git/mjo-overlay.git

where I tried the opposite approach. I applied the CVE fixes, and then tried to apply the ipv6 patch. There were a few conflicts that I manually resolved, and it seems to compile and not immediately catch fire.

Don't use that overlay anywhere near a production server! Not even down the hall. I haven't analyzed any of the changes, nor do I understand what most of them do. I just rearranged the existing patches so that they apply and compile.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2012-03-24 09:35:27 UTC
A patch over the new -r23 or -r25 ebuild would be nice :)
Comment 3 Michael Orlitzky gentoo-dev 2012-03-27 15:28:03 UTC
(In reply to comment #2)
> A patch over the new -r23 or -r25 ebuild would be nice :)

I discovered, after a few hours of work, that my source tree after patching is exactly the same as the one in portage's r23. So the order in which you apply the patches doesn't matter, and you probably shouldn't expect any different results since the code is the same.

I recompiled on both of my workstations with USE="ipv6", though, and will wait to see if any problems crop up.
Comment 4 Alex Efros 2012-08-29 23:47:55 UTC
I didn't research this issue in deep yet, but I see random lookup failures on amd64 on net-dns/djbdns-1.05-r26 built with "ipv6" USE-flag and disabled IPv6 support in kernel. Disabling ipv6 USE-flag fixed this issue.
Comment 5 Michael Orlitzky gentoo-dev 2012-08-30 16:55:13 UTC
(In reply to comment #4)
> I didn't research this issue in deep yet, but I see random lookup failures
> on amd64 on net-dns/djbdns-1.05-r26 built with "ipv6" USE-flag and disabled
> IPv6 support in kernel. Disabling ipv6 USE-flag fixed this issue.

I've been running the same thing on my home/office PCs since my previous comment but haven't spotted anything out of the ordinary. If you run into trouble again, please try `dig foo.example.com` (or your preferred lookup program) and paste the output here so I can try it.
Comment 6 Michael Orlitzky gentoo-dev 2014-04-17 02:19:36 UTC
If anyone is still experiencing this issue, I've just committed djbdns-1.05-r29 which has an updated ipv6 patch.
Comment 7 Michael Orlitzky gentoo-dev 2014-08-16 00:39:30 UTC
The latest -r29 with the new ipv6 patch has gone stable. I don't want to sound like I'm sweeping the issue under the rug, but it's been four years without an example of a lookup failure. Realistically, without more information, there's nothing I can do.

I'll leave this open for a while longer, but eventually I'll have to give up and mark it NEEDINFO.
Comment 8 Alex Efros 2014-08-16 06:18:44 UTC
I'm going to enable ipv6 USE flag now to help you with testing this.
Comment 9 Alex Efros 2014-09-19 19:30:39 UTC
So far everything is fine, I didn't noticed any lookup failures in last month.
Comment 10 Michael Orlitzky gentoo-dev 2014-09-22 14:00:10 UTC
(In reply to Alex Efros from comment #9)
> So far everything is fine, I didn't noticed any lookup failures in last
> month.

Thanks for helping out with this. I haven't seen any problems with -r29 either in the last two months or so. Without more info, there's nothing to troubleshoot, so I'm going to close this.

If anyone hits the issue in the future please feel free to reopen it.