api level docs?
Aaron Aston
aaston at gotwisted.com
Thu Jun 3 19:43:28 UTC 2004
I am implementing split dns. The zones that I have to deal with
include both internal and external resources, so I do not believe that
'views' will help me.
One of my requirements is that we maintain only a single dns
'database'. As a result, I need to parse and filter BIND zone files.
In particular, I need to strip out resource records which are
'internal'.
The concensus seems to be that the best way to parse BIND zone files
is to use the BIND C-libaries. This makes a certain amount of sense
-- BIND knows how to parse it's one files, so use BIND to parse BIND
files :).
I took contrib/sdb/pgsql/zonetodb.c, removed the PGSQL calls, and
implemented simple printf's of resource record data --- so I now have
a tool that dumps (normalized) resource records.
My problem is this: I don't really understand the source. Where can
I find documentation on BIND data structures and functions? From what
I have read so far, the documentation is all "in the source" ... I
just don't know where to start. In particular I'd really like to know
what the default 'database' looks like in memory. eg: what is a
'dns_rdataset' and what's in it?
More information about the bind-users
mailing list