Convert a primary server named.conf to a secondary server
Barry Margolin
barmar at bbnplanet.com
Thu Nov 11 22:42:07 UTC 1999
In article <kTGW3.409$75.265524 at news.abs.net>,
Adam Furman <afurman at netscape.net> wrote:
>I would like to know if anyone knows of a script that convert a primary name
>server config file over to a secondary name server config file. This way we
>only work on the primary and run this script with cron so the secondary will
>get the info. Any help would be great.
awk '/type master;/ { print "type slave; masters { 1.2.3.4;};" } \
!/type master;/ { print $0 };' master.named.conf > slave.named.conf
--
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
More information about the bind-users
mailing list