Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31238 - round-robin patch to djbdns-1.05-8.ebuild breaks FORWARDONLY behaviour
Summary: round-robin patch to djbdns-1.05-8.ebuild breaks FORWARDONLY behaviour
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Jared H. Hudson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-15 22:19 UTC by Justin Whitney
Modified: 2004-03-27 08:05 UTC (History)
4 users (show)

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


Attachments
/usr/portage/net-dns/djbdns/djbdns-1.05-r10.ebuild (djbdns-1.05-r10.ebuild,1.95 KB, text/plain)
2003-12-15 00:41 UTC, Danyel Lawson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Whitney 2003-10-15 22:19:23 UTC
the round-robin patch (standard to the djbdns-1.05-r8 ebuild) causes dnscache to
generate RR queries, which negates the use of the FORWARDONLY env var that
causes dnscache to treat root/servers/@ as forward-only caches, and incidentally
invalidates the use of root/servers/@.  This renders the dnscache incapable of
acting as a forward-only cache.   forward-only caches, incidentally, are useful
because they let you have an external cache that queries your ISP's nameservers
for cache misses, rather than doing the lookups from the root ns's.

Reproducible: Always
Steps to Reproduce:
1. compile/install/configure
2. throw your isp's NS's into root/servers/@
3. echo 1 > env/FORWARDONLY
4. #> host name.to.look.for host.dnscache.runs.on
5. watch the rr-patch generate lots of RR queries to the rootservers with your
favourite sniffer ('tcpdump -i externalinterface port 53' works)
Actual Results:  
root servers are queried massively, and the servers/@ is not respected as a cache

Expected Results:  
ONLY hits to your isp's NS's should be seen (servers/@)

no other info needed for reproduction.  contact me for additional info if needed.
Comment 1 Danyel Lawson 2003-12-14 16:58:36 UTC
Can these crappy patches please be removed.  These custom patches are breaking things.  At a minimum there needs to be new USE variables for them to optionally be added.  I don't understand how these can be in stable when they are extraneous and breaking a stable package that is used in production systems.  You are driving people crazy and making them look bad for using Gentoo because the last place they would look for a problem like a broken forwarding cache would be that some fool broke forwarding to install custom patches they thought were cool.
Comment 2 Jon Portnoy (RETIRED) gentoo-dev 2003-12-14 18:19:57 UTC
Still around, jhhudso?

Can this please be moved to a local USE flag?
Comment 3 Danyel Lawson 2003-12-15 00:41:30 UTC
Created attachment 22238 [details]
/usr/portage/net-dns/djbdns/djbdns-1.05-r10.ebuild

Please consider this submission as a fix for the round robin bug.  It only
removes the round robin patch from the 1.05-r8 ebuild
Comment 4 Danyel Lawson 2003-12-15 01:10:34 UTC
Comment on attachment 22238 [details]
/usr/portage/net-dns/djbdns/djbdns-1.05-r10.ebuild

This is unnecesary as adding the sticky bit on /var/dnscachex/root/servers/@
seems to have fixed the problem.  Sorry about the previous posts.
Comment 5 Justin Whitney 2004-02-20 16:42:52 UTC
still - use of the sticky bit would seem to depart from standard djbdns behaviour, which means that by default this package still behaves in a way that is contrary to documentation, no?  In this case seemingly the package should either warn the user about this departure, or not depart at all...
Comment 6 chris-gentoo 2004-03-06 08:38:54 UTC
Yes, please turn off the non-standard patches by default.
I've been banging my head against a wall for the last 2 weeks wondering why dnscache wasn't acting the way the docs said it would, I only discovered the patches when I started clutching at straws and thought that maybe remerging the package would help and noticed portage adding the patches.
After modifying the ebuild to forget about the round robin and forward zone patch it now seems to work fine.

If your going to put patches like this in, portage really should put a big warning at the end of the emerge letting users know that the behaviour may be significantly different to that which is described in the djbdns docs at cr.yp.to
Comment 7 Justin Whitney 2004-03-06 10:28:10 UTC
If this package is unmaintained, I volunteer to maintain it.  But one way or another we should really see that this gets fixed...
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-10 08:54:13 UTC
pyrania, please take care of this, as it seems jared is afk
Comment 9 Markus Nigbur (RETIRED) gentoo-dev 2004-03-18 07:40:48 UTC
Sorry, but I don't understand the actual problem and don't like to break packages like this one.
Comment 10 Jon Portnoy (RETIRED) gentoo-dev 2004-03-18 08:45:55 UTC
Just sent out a mail to -core to hopefully internally recruit a new maintainer.
Comment 11 Jared H. Hudson (RETIRED) gentoo-dev 2004-03-27 08:05:43 UTC
Updated djbdns to use local use flags to enable fwdzone and roundrobin, but not both at the same time. Also changed ipv6 to use orig ipv6 patch, since the only other patch we have only works with all 3 patches.