DNS Server Bind9: by Oka Mardiyana
DNS Server Bind9: by Oka Mardiyana
bind9
By Oka Mardiyana
Installing BIND9
Installing bind9
apt-get update
apt-get install bind9
vim /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.10.10.1
netmask 255.255.255.0
Latihan x1
Tes Konfigurasi
Nslookup
dig
Domain name
vim /etc/bind/named.conf.default-zones
zone aa132-stikom.com {
type master;
file /etc/bind/db.aa132-stikom;
};
zone 100.168.192.in-addr.arpa {
type master;
file /etc/bind/rev.100.168.192;
};
vim /etc/bind/db.aa132-stikom
$TTL 604800
@ IN SOA ns.aa132-stikom.com. root.aa132-stikom.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expre
604800 ) ; Negative Cache TTL
;
@ IN NS ns.aa132-stikom.com.
@ IN A 192.168.100.254
ns IN A 192.168.100.254
www
IN CNAME ns
vim /etc/bind/rev.100.168.192
$TTL 604800
@ IN SOA ns.aa132-stikom.com. root.aa132-stikom.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expre
604800 ) ; Negative Cache TTL
;
@ IN NS ns.aa132-stikom.com.
254 IN PTR ns.aa132-stikom.com.
Configure client
vim /etc/resolv.conf
search lab-stikombali.com
nameserver 10.10.10.1
nslookup lab-stikombali.com
nslookup 10.10.10.1
dig lab-stikombali.com
Selamat Mencoba!