Hi
I want to edit all my DNS .db files to add in a secondary mx.
I know there are some Perl gurus around here that could help me with a simple Perl one liner to add 1 line to the end of each .db file.
This is the line I want to add
@ 14400 IN MX 10 seconaryserver.com.
So it'll be something like this
cd /var/named
then
perl -pi.bak -e "[here's the bit where I have no idea what to put]" *.db
then restart DNS
/etc/init.d/named restart
Thanks
Aaron
I want to edit all my DNS .db files to add in a secondary mx.
I know there are some Perl gurus around here that could help me with a simple Perl one liner to add 1 line to the end of each .db file.
This is the line I want to add
@ 14400 IN MX 10 seconaryserver.com.
So it'll be something like this
cd /var/named
then
perl -pi.bak -e "[here's the bit where I have no idea what to put]" *.db
then restart DNS
/etc/init.d/named restart
Thanks
Aaron