Specify DNS server address to query

Barry Margolin barmar at alum.mit.edu
Thu Apr 8 19:22:40 UTC 2004


In article <c540md$25pu$1 at sf1.isc.org>,
 eigenchen at yahoo.com (Eigen Chen) wrote:

> Is there any software that can allow application to specify DNS server
> address while making a query ? for example,
> 
> xxx_gethostbyname( hostname, dnsserveraddr ) 
> 
> many thanks,

You can call res_init() before calling gethostbyname(), and any settings 
you configure should apply to it.

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


More information about the bind-users mailing list