prak2-scripts/WortelDNSMaster/05.sh

24 lines
637 B
Bash

#!/bin/bash
cat > /etc/bind/Jarkom/f01.com <<EOL
\$TTL 604800
@ IN SOA ns1.f01.com. admin.f01.com. (
2024100101 ; Serial
7200 ; Refresh
1800 ; Retry
43200 ; Expire
1209600 ) ; 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
www.bayam IN CNAME bayam.f01.com.
www.brokoli IN CNAME brokoli.f01.com.
EOL
service bind9 restart