System Resolver Test App?

Stephane Bortzmeyer bortzmeyer at
Thu Nov 12 01:01:38 UTC 2009

On Wed, Nov 11, 2009 at 05:00:03PM -0600,
 david at <david at> wrote 
 a message of 60 lines which said:

> I am wondering if anyone knows of an app similar to nslookup or
> dig that actually uses the system resolver. 

C source attached. Compile, for instance, with:

gcc -o resolve-name resolve-name.c

> I am basically trying to uinderstand why the system resolver was
> getting stuck on the third entry within the resolv.conf while it
> should have tried one of the first two working DNS servers first.

Not sure it will help.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: resolve-name.c
Type: text/x-csrc
Size: 2836 bytes
Desc: not available
URL: <>

More information about the bind-users mailing list