There is BIND::Conf_Parser which is a base class for parsing 8.x named.conf files. In a nutshell to retain bits of an existing conf file you first need to parse it so you can find the bits you want to keep, change the bits you want to change, then put Humpty Dumpty back together again....
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: Reading and *writing* configuration files
by tachyon
in thread Reading and *writing* configuration files
by DeathBunny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |