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:
Keanu Taufan 2024-10-03 00:02:38 +07:00
parent 0a24013b5f
commit 4ec1ed1b4e
No known key found for this signature in database
GPG Key ID: 1952D665A3A51BE0
6 changed files with 10 additions and 6 deletions

View File

@ -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
View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "nameserver 10.67.3.2" >> /etc/resolv.conf

View File

@ -5,4 +5,3 @@ 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
View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "nameserver 10.67.3.2" >> /etc/resolv.conf

View File

@ -5,4 +5,3 @@ 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