task 7
This commit is contained in:
parent
ad5d27e3d2
commit
8874ddd18a
39
PokcoyDNSSlave/07.sh
Normal file
39
PokcoyDNSSlave/07.sh
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
#!/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
|
||||||
20
WortelDNSMaster/07.sh
Normal file
20
WortelDNSMaster/07.sh
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cat >> /etc/bind/Jarkom/f01.com <<EOL
|
||||||
|
|
||||||
|
; Delegation for vitamin.brokoli.f01.com
|
||||||
|
ns2 IN A 10.67.3.2 ; IP delegation
|
||||||
|
vitamin.brokoli IN NS ns2
|
||||||
|
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
|
||||||
Loading…
Reference in New Issue
Block a user