Convert a primary server named.conf to a secondary server
Joseph S D Yao
jsdy at cospo.osis.gov
Fri Nov 12 20:09:22 UTC 1999
On Thu, Nov 11, 1999 at 10:42:07PM +0000, Barry Margolin wrote:
> 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
Works fine if all zones are going to be slaved by exactly the same
servers. As you know, this is not necessarily going to be the case.
Some options may need to change, too.
--
Joe Yao jsdy at cospo.osis.gov - Joseph S. D. Yao
COSPO/OSIS Computer Support EMT-B
-----------------------------------------------------------------------
This message is not an official statement of COSPO policies.
More information about the bind-users
mailing list