Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora User (http://www.linux-archive.org/fedora-user/)
-   -   dns resolver issue (http://www.linux-archive.org/fedora-user/560720-dns-resolver-issue.html)

Genes MailLists 08-05-2011 03:04 AM

dns resolver issue
 
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
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Jorge Fábregas 08-05-2011 03:22 AM

dns resolver issue
 
On 08/04/2011 11:04 PM, Genes MailLists wrote:
> The /etc/resolv.conf has the localhost bind (127.0.0.1) as the first
> entry.

Could it be something in your DNS server configuration (bind)? Try the
dig command:

dig -x IP_HERE

or

dig @DNS-SERVER -x IP_HERE

...and see if you get the same behaviour.

--
Jorge
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Genes MailLists 08-05-2011 04:14 AM

dns resolver issue
 
On 08/04/2011 11:22 PM, Jorge Fábregas wrote:
> On 08/04/2011 11:04 PM, Genes MailLists wrote:
>> The /etc/resolv.conf has the localhost bind (127.0.0.1) as the first
>> entry.
>
> Could it be something in your DNS server configuration (bind)? Try the
> dig command:
>
> dig -x IP_HERE
>
> or
>
> dig @DNS-SERVER -x IP_HERE
>
> ...and see if you get the same behaviour.
>
> --

Thanks for your suggestions .. but mea culpa.

So sorry - user error - seems there was a code tidy on the move to f15
- led to bug from renamed error variable ... sorry for noise ..


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


All times are GMT. The time now is 10:02 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.