39 lines
867 B
Bash
39 lines
867 B
Bash
#!/bin/bash
|
|
|
|
mkdir -p /etc/bind/Vitamin
|
|
|
|
cat >> /etc/bind/named.conf.local <<EOL
|
|
|
|
zone "vitamin.brokoli.f01.com" {
|
|
type master;
|
|
file "/etc/bind/Vitamin/vitamin.brokoli.f01.com";
|
|
};
|
|
EOL
|
|
|
|
cat > /etc/bind/Vitamin/vitamin.brokoli.f01.com <<EOL
|
|
\$TTL 604800
|
|
@ IN SOA ns2.pokcoy.f01.com. admin.pokcoy.f01.com. (
|
|
20241001 ; Serial (YYYYMMDDNN)
|
|
7200 ; Refresh (2 hours)
|
|
1800 ; Retry (30 minutes)
|
|
43200 ; Expire (12 hours)
|
|
1209600 ; Minimum TTL (2 weeks)
|
|
)
|
|
|
|
@ IN NS ns2.pokcoy.f01.com.
|
|
ns2 IN A 10.67.3.2 ; IP address of Pokcoy
|
|
@ IN A 10.67.4.2 ; IP address of Brokoli
|
|
www IN CNAME vitamin.brokoli.f01.com.
|
|
EOL
|
|
|
|
cat > /etc/bind/named.conf.options <<EOL
|
|
options {
|
|
// dnssec-validation auto;
|
|
|
|
auth-nxdomain no; # conform to RFC1035
|
|
listen-on-v6 { any; };
|
|
allow-query { any; };
|
|
};
|
|
EOL
|
|
|
|
service bind9 restart |