Query from program?
Barry Margolin
barmar at bbnplanet.com
Mon Feb 21 20:23:28 UTC 2000
In article <0lds4.8197$lK6.219736 at iad-read.news.verio.net>,
Paul D. Robertson <proberts at clark.net> wrote:
>I'm looking for a way to query a nameserver from a program like
>gethostbyname(), but where I can specify the external resolver to use. Is
>there such a routine in BIND, or should I be looking for alternate
>resolver code somewhere?
The resolver library that's included with most Unix systems provides a
direct interface to sending DNS queries. See the chapter titled
"Programming with the Resolver and Name Server Library Routines" in DNS &
BIND.
--
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
More information about the bind-users
mailing list