1. Install bind9
Dgn perintah : #apt-get install bind9
2. copy kn file db.127 menjadi db 192 dan file db.local menjadi db.febri
Dgn perintah :
#cp /etc/bind/db.127 /etc/bind/db.192
#cp /etc/bind/db.local /etc/bind/db.febri
3. edit file db.192 :
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ibnudinar.com root.ibnudinar.com (
11 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ibnudinar.com.
13.12.168 IN PTR ibnudinar.com.
www IN PTR ibnudinar.com.
Lalu save(f2)
4. edit juga file db.febri
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ibnudinar.com. root.ibnudinar.com. (
12 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ibnudinar.com.
@ IN A 192.168.12.13
www IN A 192.168.12.13
5. Edit lagi named.conf (ganti tulisan localhost dan 127) :
zone “ibnudinar.com” {
type master;
file “/etc/bind/db.febri”;
};
zone “192.in-addr.arpa” {
type master;
file “/etc/bind/db.192″;
};
6. Jangan lupa setting interfacenya ;
iface lo inet loopback
iface eth0 inet static
address 192.168.123.13
netmask 255.255.255.0
7. Dan setting resolv.conf :
nameserver 192.168.123.13
8. Restart interface dan bind9
Dgn perintah :
# /etc/init.d/networking restart
# /etc/init.d/bind9 restart
9. Cek dgn perintah ;
#nslookup pephy.com (nama domain yg telah di setting)
#ping pephy.com .
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar