Compare commits
No commits in common. "8874ddd18a0f7bc812b305f6617d797544430bdf" and "0a24013b5f5be3895c4b85660d9a7eeac868ea1f" have entirely different histories.
8874ddd18a
...
0a24013b5f
@ -4,7 +4,7 @@ cat > /etc/bind/named.conf.local <<EOL
|
||||
zone "f01.com" {
|
||||
type slave;
|
||||
masters { 10.67.3.3; };
|
||||
file "/var/lib/bind/f01.com";
|
||||
file "/etc/bind/Jarkom/f01.com";
|
||||
};
|
||||
EOL
|
||||
|
||||
|
||||
@ -1,39 +0,0 @@
|
||||
#!/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
|
||||
@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "nameserver 10.67.3.2" >> /etc/resolv.conf
|
||||
@ -5,3 +5,4 @@ apt-get update
|
||||
apt-get install dnsutils -y
|
||||
|
||||
echo "nameserver 10.67.3.3" > /etc/resolv.conf
|
||||
echo "nameserver 10.67.3.2" >> /etc/resolv.conf
|
||||
@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "nameserver 10.67.3.2" >> /etc/resolv.conf
|
||||
@ -5,3 +5,4 @@ apt-get update
|
||||
apt-get install dnsutils -y
|
||||
|
||||
echo "nameserver 10.67.3.3" > /etc/resolv.conf
|
||||
echo "nameserver 10.67.3.2" >> /etc/resolv.conf
|
||||
@ -12,7 +12,7 @@ mkdir -p /etc/bind/Jarkom
|
||||
cat > /etc/bind/Jarkom/f01.com <<EOL
|
||||
\$TTL 604800
|
||||
@ IN SOA ns1.f01.com. admin.f01.com. (
|
||||
2 ; Serial
|
||||
2 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
|
||||
@ -16,9 +16,6 @@ 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
|
||||
|
||||
www.bayam IN CNAME bayam.f01.com.
|
||||
www.brokoli IN CNAME brokoli.f01.com.
|
||||
EOL
|
||||
|
||||
service bind9 restart
|
||||
@ -1,20 +0,0 @@
|
||||
#!/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