Subject: | Almost what I need... |
Any chance of getting this module smart enough to handle $ORIGIN directives within the zone files?
For example, the zone file starts with a "$ORIGIN domain.com", later in the zone file, there's a directive "$ORIGIN sub.doamin.com" and a set of A records under that subdomain.
Right now I get the following error messages:
Unparseable line
$ORIGIN sub.domain.com.
at ./test.pl line 5
It reads all the A records properly, but incorrectly puts everything in "<host>.domain.com". Ideally, I'd like it to spit the A records out as "<host>.sub IN A <IP Address>". (Assuming and/or specifying the "domain.com" origin.)
My problem is that I'm trying to clean up a zone transfered from another server. It'd also be nice if there were options to sort output...