task 6
This commit is contained in:
parent
301e6c873b
commit
de48188202
11
PokcoyDNSSlave/06.sh
Normal file
11
PokcoyDNSSlave/06.sh
Normal 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
7
PokcoyDNSSlave/setup.sh
Normal 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
|
||||||
@ -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
|
||||||
@ -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
19
WortelDNSMaster/06.sh
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user