In article <mailman.966.1257988033.14796.bind-us...@lists.isc.org>,
 Stephane Bortzmeyer <bortzme...@nic.fr> wrote:

> On Wed, Nov 11, 2009 at 07:44:05PM -0500,
>  Barry Margolin <bar...@alum.mit.edu> 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, bar...@alum.mit.edu
Arlington, MA
*** PLEASE don't copy me on replies, I'll read them in the group ***
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to