
Install and setting up bin9 on linux debian. What is bind9 ? Bind9 is DNS Server based linux OS.
You can create your own domain at local network. Example : aruel.com, pakar-it.info, etc.
Ok, let's begin.
1. Installing bind9 :
apt-get install bind9
2. Copy file /etc/bind/db.local to /etc/bind/db.forward, and /etc/bind/db.127 to /etc/bind/db.reverse
cp /etc/bind/db.local /etc/bind/db.forward
cp /etc/bind/db.127 /etc/bind/db.reverse
3. Edit file /etc/bind/named.conf, add this line to end off file
nano /etc/bind/named.conf
zone "pakar-it.info" {
type master;
file "db.forward";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "db.reverse";
};
Note : you can replace pakar-it.info with your domain.
0.168.192 is your IP. If your IP 192.168.100.1, so you can use 100.168.192.
4. Edit /etc/bind/db.forward . Edit localhost with your hostname and your domain.
nano /etc/bind/db.forward
@ IN SOA ns.pakar-it.info. arul.pakar-it.info.(
2009061601
28800
14400
3600000
86400 )
@ IN NS ns.pakar-it.info.
IN MX 10 mail.pakar-it.info.
IN A 192.168.0.5
ns IN A 192.168.0.5
www IN CNAME ns
ftp IN CNAME ns
mail IN CNAME ns
5. Edit /etc/bind/db.reverse . Edit and use this script.
nano /etc/bind/db.reverse
@ IN SOA ns.pakar-it.info. arul.pakar-it.info.(
2009061602
28800
14400
3600000
86400 )
IN NS ns.pakar-it.info.
5 IN PTR ns.pakar-it.info.
Note : 5 is your last IP. Example : 192.168.0.5 , use 5 for this settings.
6. Restart bind9 service.
/etc/init.d/bind9 restart
7. Test your settings.
nslookup www.pakar-it.info
8. Ok. It's easy and simple....
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment