In article <[email protected]>,
 Stephane Bortzmeyer <[email protected]> wrote:

> On Wed, Nov 11, 2009 at 07:44:05PM -0500,
>  Barry Margolin <[email protected]> wrote 
>  a message of 27 lines which said:
> 
> > I'm not sure if there is one, but it should be pretty easy to write
> > a program that calls res_query().
> 
> But this calls directly the DNS. The OP wanted something which called
> the system resolver, which means getaddrinfo(), not res_query().

Considering the problem he was trying to solve, I didn't think he cared 
about things like /etc/hosts, he just wants to exercise the DNS stub 
resolver.  If you just want to do a hostname lookup, you can use 
practically any network application, e.g. ping.

And how would you use getaddrinfo() to test MX lookups, for instance?

-- 
Barry Margolin, [email protected]
Arlington, MA
*** PLEASE don't copy me on replies, I'll read them in the group ***
_______________________________________________
bind-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to