Bind9 pada linux dengan perintah
apt-get install bind9
setelah terinstall, anda lakukan pengeditan pada mc. yang anda lakukan antara lain :
- Copy db.127 dan db.local dengan cara
cp /etc/bind/db.127 /etc/bind/db.192
dan cp /etc/bind/db.local /etc/bind/db.dewi.com - edit db.192
$ TTL 604800
@ IN SOA dewi.com.root.dewi.com.(
11 : Serial
604800 : refresh
86400 : retry
2419200 : expire
604800 ) : Negative cachce TTL
@ IN NS dewi.com.
1.1.168 IN PTR dewi.com.
- edit db.dewi
@ IN SOA dewi.com.root.dewi.com. (
12 : Serial
604800 : Refresh
86400 : Retry]
2419200 : Expire
604800 ) : Negative cache TTL
;
@ IN NS dewi.com.
@ IN A 192.168.1.1
www IN A 192.168.3.1
- edit named.conf
type master;
file "/etc/bind/db.dewi";
};
zone "192.in-addr.arpa"{
type master;
file "/etc/bind/db.192";
};
- Setting Interface
netmask 255.255.255.0
- Setting resolv.conf
masukkan tulisan nameserver 192.168.1.1
- Restart
/etc/init.d/networking restart
kemudian
/etc/init.d/bind9 restart
- Check
nslookup 192.168.1.1
atau nslookup dewi.com
Demikian sedikitilmu yang sayaketahui dan dapat saya bagikan kepada teman-teman.
0 komentar:
Posting Komentar