authority for domains: how to verify from program?

Barry Margolin barmar at alum.mit.edu
Fri Dec 23 17:20:26 UTC 2005


In article <dog0ii$2kag$1 at sf1.isc.org>,
 Roman Mashak <romez777 at gmail.com> wrote:

> Hello,
> 
> I'd like to use bind API in my program to obtain a list of zones the
> server is authorative for (let is be the server where program is
> running).
> Are there any functions (bind8 preferable)?

The only API that BIND comes with is a resolver library, which is used 
for querying nameservers over the network via the DNS protocol.  This 
protocol doesn't include any way to get a list of zones that the server 
is authoritative for.

The usual way to do it is to get the server's named.conf file.

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***



More information about the bind-users mailing list