Red Hat Bugzilla – Bug 601295
Problem with A/AAAA DNS requests
Last modified: 2010-06-10 08:59:54 EDT
When something (Firefox, telnet, etc.) looks up a hostname, the library (I guess libresolv) is doing both an A and an AAAA request. I've run into a problem with this.
The two DNS requests are sent from the same UDP port before waiting for a response. This appears to trigger a bug in at least Juniper SSG firewalls (my guess is that the first response is seen as complete and the session is removed as "done"). For comparison, Mac OS X appears to send the A and AAAA requests from different ports, which doesn't cause this problem.
The symptom is that any connection attempt (ssh to a host, send/receive mail, click on a link in Firefox) hangs for several seconds, until the AAAA lookup times out. Since there doesn't appear to be a local way to disable the double lookup, access from behind such firewalls is painfully slow.
I understand that the real problem is buggy firewalls, but IMHO it would be good to change the Linux lookups for better compatibility with the "real world".
Try options single-request.
"options single-request" does seem to work around the problem. Is this option documented anywhere? I don't see it in the resolv.conf(5) man page.
How hard would it be to use two different ports for the simultaneous requests (as at least OS X does)? That would be the most compatible default.
Broken resolver then.
Did you even read what I wrote before closing this? The "broken resolver" is Linux doing something that no other OS does that is less compatible. What happened to "be generous in what you accept and conservative in what you send"?
Also, there is a definite documentation bug in that the "options single-request" configuration is not documented anywhere that I could find.
resolv.conf(5) is part of man-pages. Please open a separate bug.