#!/bin/bash
Read-p "Set master eg:192.168.1.1; Enter ' Quit ' for Quit: "Master
if [$master = = "Quit"];then
echo "Bye"
Exit 0
Fi
Read-p "Enter zone eg:baidu.com; Enter ' Quit ' for Quit: "Netaddress
Mkslave ()
{
Echo-e "\nzone \" "$" \ "in {
Type slave;
Masters {$master;};
File \ "" Slaves/$1.zone "\";
allow-update {none;};
}; ">>/etc/named.rfc1912.zones
}
while [$netAddress! = "Quit"];d o
Mkslave $netAddress
echo "Success"
Read-p "Enter zone eg:baidu.com; Enter ' Quit ' for Quit: "Netaddress
Done
echo "Bye"
How to use:
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/8C/4F/wKioL1hqQazzP-YrAAGmFNfH5s8655.png "title=" B.png " alt= "Wkiol1hqqazzp-yraagmfnfh5s8655.png"/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/8C/52/wKiom1hqQdyAHdaIAAFhhAYj8Dc579.png "title=" B.png " alt= "Wkiom1hqqdyahdaiaafhhayj8dc579.png"/>
DNS Utility script: Quickly configure slave for forward zones