LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   glibc - DNS: IPv4 and IPV6 parallel queries (http://www.linuxquestions.org/questions/slackware-14/glibc-dns-ipv4-and-ipv6-parallel-queries-4175455377/)

vsavsa 03-24-2013 12:47 PM

glibc - DNS: IPv4 and IPV6 parallel queries
 
Since very long time there is a glibc-2.10-dns-no-gethostbyname4.diff.gz patch applied to glibc. IMHO this patch could be dropped and instead of that could be added "option single-request" to /etc/resolv.conf (provided by n/network-scripts package) by default.

This option is available since glibc-2.10 and does exactly the same thing as the patch glibc-2.10-dns-no-gethostbyname4.diff.gz according to the man page resolv.conf(5).

Is there a possibility to drop the patch? I would like to get the parallel IPv4 and IPv6 queries (by disabling single-request option); right now is disabled without possibility to enable those parallel queries.

Thanks, Vita

volkerdi 03-24-2013 04:26 PM

The problem with doing that is that resolv.conf ends up rewritten automatically by dhcpcd, and then we'll run into the problems with broken routers all over again. If the glibc default were to *not* make the parallel queries unless "option parallel-request" were present it would make it a whole lot easier to drop the patch.

vsavsa 03-25-2013 01:40 AM

Quote:

Originally Posted by volkerdi (Post 4917918)
The problem with doing that is that resolv.conf ends up rewritten automatically by dhcpcd, and then we'll run into the problems with broken routers all over again. If the glibc default were to *not* make the parallel queries unless "option parallel-request" were present it would make it a whole lot easier to drop the patch.

Dhcpcd problem can be avoided by providing /etc/resolv.conf.head file with the option in it (see the script dhcpcd-hooks/20-resolv.conf in dhcpcd package).


All times are GMT -5. The time now is 02:29 PM.