dns resolver issue

Genes MailLists lists at sapience.com
Fri Aug 5 03:04:22 UTC 2011


  I have a C program which does dns lookups of a large number of IP
addresses by using calls to getnameinfo() in a loop. Its designed to be
a very fast way to do lookups on cidr blocks.

  On all earlier versions of fedora (f8-f14) this works just fine. On
F15 it does not always work - sometimes it returns nothing. Run it again
- nothing - run it a 3rd time and it works fine - printing out the list
of ip/hostname pairs. Sometimes it works fine first time.

  The /etc/resolv.conf has the localhost bind (127.0.0.1) as the first
entry.

  It was recompiled on f15 ... since its intermittent its annoying to
debug - has anyone else seen this kind of problem ?

   Thanks.

 gene


More information about the users mailing list