This commit is contained in:
Keanu Taufan 2024-10-02 20:37:29 +07:00
parent 301e6c873b
commit de48188202
No known key found for this signature in database
GPG Key ID: 1952D665A3A51BE0
5 changed files with 41 additions and 2 deletions

11
PokcoyDNSSlave/06.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
cat > /etc/bind/named.conf.local <<EOL
zone "f01.com" {
type slave;
masters { 10.67.3.3; };
file "/etc/bind/Jarkom/f01.com";
};
EOL
service bind9 restart

7
PokcoyDNSSlave/setup.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
echo "nameserver 192.168.122.1" > /etc/resolv.conf
apt-get update
apt-get install bind9 -y
echo "nameserver 10.67.3.3" > /etc/resolv.conf

View File

@ -4,4 +4,5 @@ echo "nameserver 192.168.122.1" > /etc/resolv.conf
apt-get update apt-get update
apt-get install dnsutils -y apt-get install dnsutils -y
echo "nameserver 10.67.3.3" > /etc/resolv.conf echo "nameserver 10.67.3.3" > /etc/resolv.conf
echo "nameserver 10.67.3.2" >> /etc/resolv.conf

View File

@ -4,4 +4,5 @@ echo "nameserver 192.168.122.1" > /etc/resolv.conf
apt-get update apt-get update
apt-get install dnsutils -y apt-get install dnsutils -y
echo "nameserver 10.67.3.3" > /etc/resolv.conf echo "nameserver 10.67.3.3" > /etc/resolv.conf
echo "nameserver 10.67.3.2" >> /etc/resolv.conf

19
WortelDNSMaster/06.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
cat > /etc/bind/named.conf.local <<EOL
zone "f01.com" {
type master;
notify yes;
also-notify { 10.67.3.2; };
allow-transfer { 10.67.3.2; };
file "/etc/bind/Jarkom/f01.com";
};
zone "4.67.10.in-addr.arpa" {
type master;
file "/etc/bind/Jarkom/4.67.10.in-addr.arpa";
};
EOL
service bind9 restart
service bind9 stop