task 1-4
This commit is contained in:
commit
911deb0e52
3
Mayur/setup.sh
Normal file
3
Mayur/setup.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE -s 10.67.0.0/16
|
||||||
7
TaugeClient/setup.sh
Normal file
7
TaugeClient/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 dnsutils -y
|
||||||
|
|
||||||
|
echo "nameserver 10.67.3.3" > /etc/resolv.conf
|
||||||
7
TomatClient/setup.sh
Normal file
7
TomatClient/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 dnsutils -y
|
||||||
|
|
||||||
|
echo "nameserver 10.67.3.3" > /etc/resolv.conf
|
||||||
30
WortelDNSMaster/02.sh
Normal file
30
WortelDNSMaster/02.sh
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#/bin/bash
|
||||||
|
|
||||||
|
cat > /etc/bind/named.conf.local <<EOL
|
||||||
|
zone "f01.com" {
|
||||||
|
type master;
|
||||||
|
file "/etc/bind/Jarkom/f01.com";
|
||||||
|
};
|
||||||
|
EOL
|
||||||
|
|
||||||
|
mkdir -p /etc/bind/Jarkom
|
||||||
|
|
||||||
|
cat > /etc/bind/Jarkom/f01.com <<EOL
|
||||||
|
\$TTL 604800
|
||||||
|
@ IN SOA ns1.f01.com. admin.f01.com. (
|
||||||
|
2 ; Serial
|
||||||
|
604800 ; Refresh
|
||||||
|
86400 ; Retry
|
||||||
|
2419200 ; Expire
|
||||||
|
604800 ); Negative Cache TTL
|
||||||
|
|
||||||
|
@ IN NS ns1.f01.com.
|
||||||
|
|
||||||
|
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
|
||||||
|
EOL
|
||||||
|
|
||||||
|
service bind9 restart
|
||||||
9
WortelDNSMaster/03.sh
Normal file
9
WortelDNSMaster/03.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cat >> /etc/bind/Jarkom/f01.com <<EOL
|
||||||
|
|
||||||
|
www.bayam IN CNAME bayam.f01.com.
|
||||||
|
www.brokoli IN CNAME brokoli.f01.com.
|
||||||
|
EOL
|
||||||
|
|
||||||
|
service bind9 restart
|
||||||
28
WortelDNSMaster/04.sh
Normal file
28
WortelDNSMaster/04.sh
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cat >> /etc/bind/named.conf.local <<EOL
|
||||||
|
|
||||||
|
zone "4.67.10.in-addr.arpa" {
|
||||||
|
type master;
|
||||||
|
file "/etc/bind/Jarkom/4.67.10.in-addr.arpa";
|
||||||
|
};
|
||||||
|
EOL
|
||||||
|
|
||||||
|
cat > /etc/bind/Jarkom/4.67.10.in-addr.arpa <<EOL
|
||||||
|
\$TTL 604800
|
||||||
|
@ IN SOA ns1.f01.com. admin.f01.com. (
|
||||||
|
2 ; Serial
|
||||||
|
604800 ; Refresh
|
||||||
|
86400 ; Retry
|
||||||
|
2419200 ; Expire
|
||||||
|
604800 ); Negative Cache TTL
|
||||||
|
|
||||||
|
@ IN NS ns1.f01.com.
|
||||||
|
|
||||||
|
; PTR records for reverse DNS
|
||||||
|
2 IN PTR brokoli.f01.com.
|
||||||
|
3 IN PTR buncis.f01.com.
|
||||||
|
4 IN PTR bayam.f01.com.
|
||||||
|
EOL
|
||||||
|
|
||||||
|
service bind9 restart
|
||||||
7
WortelDNSMaster/setup.sh
Normal file
7
WortelDNSMaster/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
|
||||||
Loading…
Reference in New Issue
Block a user