db2hosts
yshollander
12-08-2009 11:01:20
Sometimes it's desirable to have a fully populated /etc/hosts as a backup in case named dies. I've attached a
Perl script I threw together to generate /etc/hosts from the db.<domain> file generated by the build_bind
dcm.pl module. I was too lazy to get the host data directly from the ONA DB, however.
GPL verbiage borrowed from ONA. Tested on CentOS 5.3.
Comments, enhancements, etc. are welcome.
Cheers
Isaac
Perl script I threw together to generate /etc/hosts from the db.<domain> file generated by the build_bind
dcm.pl module. I was too lazy to get the host data directly from the ONA DB, however.
GPL verbiage borrowed from ONA. Tested on CentOS 5.3.
Comments, enhancements, etc. are welcome.
Cheers
Isaac
Matt
12-08-2009 12:11:36
Very cool.. thanks for the contribution!