task 6 revision
do not add dns slave into nameserver until it is ready something to do with /var/bind
This commit is contained in:
parent
0a24013b5f
commit
4ec1ed1b4e
@ -4,7 +4,7 @@ cat > /etc/bind/named.conf.local <<EOL
|
|||||||
zone "f01.com" {
|
zone "f01.com" {
|
||||||
type slave;
|
type slave;
|
||||||
masters { 10.67.3.3; };
|
masters { 10.67.3.3; };
|
||||||
file "/etc/bind/Jarkom/f01.com";
|
file "/var/lib/bind/f01.com";
|
||||||
};
|
};
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
|
|||||||
3
TaugeClient/06.sh
Normal file
3
TaugeClient/06.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "nameserver 10.67.3.2" >> /etc/resolv.conf
|
||||||
@ -4,5 +4,4 @@ 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
|
|
||||||
3
TomatClient/06.sh
Normal file
3
TomatClient/06.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "nameserver 10.67.3.2" >> /etc/resolv.conf
|
||||||
@ -4,5 +4,4 @@ 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
|
|
||||||
@ -12,7 +12,7 @@ mkdir -p /etc/bind/Jarkom
|
|||||||
cat > /etc/bind/Jarkom/f01.com <<EOL
|
cat > /etc/bind/Jarkom/f01.com <<EOL
|
||||||
\$TTL 604800
|
\$TTL 604800
|
||||||
@ IN SOA ns1.f01.com. admin.f01.com. (
|
@ IN SOA ns1.f01.com. admin.f01.com. (
|
||||||
2 ; Serial
|
2 ; Serial
|
||||||
604800 ; Refresh
|
604800 ; Refresh
|
||||||
86400 ; Retry
|
86400 ; Retry
|
||||||
2419200 ; Expire
|
2419200 ; Expire
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user