LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Random resolver error on slack 13.1 x86 (https://www.linuxquestions.org/questions/slackware-14/random-resolver-error-on-slack-13-1-x86-881781/)

ngimmill 05-20-2011 06:41 AM

Random resolver error on slack 13.1 x86
 
Hello,

I've a strange problem with glibc resolver :

On slackware 13.1 X86, with glibc-*-i486-3 packages (not yet replaced by glibc-*-i486-5 from patches directory)

DNS server (bind-9.4_ESV_R4) is on localhost.

resolv.conf contains "nameserver 127.0.0.1"

No cache ( daemon nscd is not running )

With a test program (in C ) calling about 2000 times gethostbyname (3) with "local" host names picked randomly from a list of about 15 names (the local dns server is authoritative for these names)

Sometimes (5 or 6 times for 2000 calls) , gethostbyname waits for about 5 sec, and returns "Host name lookup failure"

When querying directly the dns server (on the same host) from another C program (same number of calls) , all requests get a valid answer from bind.

With the same C program (using gethostbyname) running on an older slackware (12.0.0) which queries the dns server on the previous host (with 13.1), all calls to gethostbyname return a valid answer.

The temporary workaround is to run nscd on host running 13.1.

The next step is to try to upgrade glibc-*-i486-3 to glibc-*-i486-5 but before this, I wonder if someone has already seen this kind of problem ?


Thanks


All times are GMT -5. The time now is 06:30 AM.