System Resolver Test App?
Barry Margolin
barmar at alum.mit.edu
Thu Nov 12 01:14:02 UTC 2009
In article <mailman.966.1257988033.14796.bind-users at lists.isc.org>,
Stephane Bortzmeyer <bortzmeyer at nic.fr> wrote:
> On Wed, Nov 11, 2009 at 07:44:05PM -0500,
> Barry Margolin <barmar at 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, barmar at alum.mit.edu
Arlington, MA
*** PLEASE don't copy me on replies, I'll read them in the group ***
More information about the bind-users
mailing list