Subject: Re: Offtopic - C resolver library
To: Stefan Sonnenberg-Carstens <ssc@coolspot.de>
From: David Maxwell <david@crlf.net>
List: netbsd-users
Date: 10/14/2004 11:00:32
On Thu, 14 Oct 2004, Stefan Sonnenberg-Carstens wrote:
> Hi list,
> I know that this question is OT in some regard
> to using NetBSD, but has anyone examples on how to
> use the dns resolver library from C programs ?
> I'm a little confused by the man pages;
> To be more precisely : I'd like to fetch the MX
> records for a specific domain.

Take a look at /usr/src/dist/bind/bin/dig/dig.c or
/usr/src/dist/bind/bin/nslookup/*

both are examples of how to do pretty much any resolver query you can
imagine.

-- 
David Maxwell, david@vex.net|david@maxwell.net --> From a real request to a
helpdesk "Can you please open the following ports in the firewall: 1024-90000"
						- Anonymous to protect the guilty