0

Script – named.conf.secondary

Posted by admin on Jun 18, 2009 in Scripts

My Notes
#######
#
## Command Line Input – Create single secondary entry
#
#####

#!/bin/bash
# Edit IP variable to equal the IP address of the master name server
IP=10.0.0.1
echo -n “Enter Domain Name: ”
read name
echo “zone \”$name\” { type slave; masters { $IP; }; file \”/var/named/$name.sec\”; };” >> /etc/named.conf.secondary
#######
#  Make Secondary named.conf file
# FROM MASTER named.conf
#######
#!/bin/bash
IP=10.0.0.1
cat /etc/named.conf |grep zone |grep -v “type [...]

Tags: , , ,

Copyright © 2010 BenMcGrail.com All rights reserved.
Hosted by: VitexOnline.com