Re: api level docs?

This is a discussion on Re: api level docs? within the Bind Users forums, part of the DNS and Related Forums category; > I'm almost there ... it's not that hard. All I need to figure out now > is how ...


Go Back   Usenet Forums > DNS and Related Forums > Bind Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-08-2004
Aaron Aston
 
Posts: n/a
Default Re: api level docs?

> I'm almost there ... it's not that hard. All I need to figure out now
> is how to remove a resource definition while I'm iterating. There is
> a handy library function called 'dns_db_dump()' that will let me write
> the filtered db back out to disk.


In the end I had to use the routines invoked by the DDNS side of BIND
to edit out the resource records that I determine to be internal. In
particular I had to use the stuff from diff.h/.c (dns_diff_init,
dns_difftuple_create, dns_diff_append, dns_diff_apply).

I was trying to manipulate the rbt tree directly, but the code that
manages rdata structs is just not pretty (or is, perhaps, very pretty,
as in the same prettiness as a wasp. Fiddle with the wrong thing in
there and you're going to get 'stung').

I thought I might have trouble removing records as I iterate, but the
iterators seem to remain valid even though the 'current' record has
been removed. If this does end up being a problem I will just collect
my diffs as I iterate and then apply one large diff after processing
the zone file.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0