do not add dns slave into nameserver until it is ready something to do with /var/bind
30 lines
811 B
Bash
30 lines
811 B
Bash
#/bin/bash
|
|
|
|
cat > /etc/bind/named.conf.local <<EOL
|
|
zone "f01.com" {
|
|
type master;
|
|
file "/etc/bind/Jarkom/f01.com";
|
|
};
|
|
EOL
|
|
|
|
mkdir -p /etc/bind/Jarkom
|
|
|
|
cat > /etc/bind/Jarkom/f01.com <<EOL
|
|
\$TTL 604800
|
|
@ IN SOA ns1.f01.com. admin.f01.com. (
|
|
2 ; Serial
|
|
604800 ; Refresh
|
|
86400 ; Retry
|
|
2419200 ; Expire
|
|
604800 ); Negative Cache TTL
|
|
|
|
@ IN NS ns1.f01.com.
|
|
|
|
ns1 IN A 10.67.3.3 ; IP address of DNS Master
|
|
|
|
brokoli IN A 10.67.4.2 ; IP address of Brokoli
|
|
buncis IN A 10.67.4.3 ; IP address of Buncis
|
|
bayam IN A 10.67.4.4 ; IP address of Bayam
|
|
EOL
|
|
|
|
service bind9 restart |