Cleaning up DNS zone files...

Sebastian E. Castro Avila secastro at
Thu Jan 18 20:14:13 UTC 2007

On Thu, 18 Jan 2007 14:37:06 -0300, Forrest Aldrich <forrie at>  

> I've inherited a slew of DNS zonefiles which need to be cleaned up -
> mostly formatting.
> I can use tools like dnslint to indentify errors; however, I wonder if
> someone has a slick hack (script, regex) that can be utilized to run
> through and reformat the zonefiles (forward and reverse) to get them in
> order and tidy.

Or you can try to use "named-checkzone" with -D option (Dump zone file in  
canonical format) and -o <filename> option (Write zone output to  
<filename>) to get the same result.

Kind Regards
> Thanks.

Sebastian E. Castro Avila             sebastian at
Administrador de DNS, NIC Chile

More information about the bind-users mailing list