Minggu, 01 Juli 2007

Installing and configuring DNS server using Debian

Hello guys, in this chance I'm gonna try to write about my reffer. And I called it configuring DNS server with BIND in using Debian Woody. For the first, If our debian linux system ready. Login as root!. If we install bind manually They are some methode to do!
1. mount debian installer cd with
root@debian#mount /cdrom
then, go to directory pools/main/b/
type !
root@debian#apt-get install bind-9.x.x.deb
wait a few minute while debian linux installing bind on your system.
and now, we have ready to configure our DNS server.
Edit file named.conf in directory /etc/bind (in this chance I use vi editor to edit that file. But, it's up to you, choose text editor what do you want. And in this tutor, the domain is tkj.edu.
root@debian#vi /etc/bind/named.conf
That will show.
opitons {
// directory "/var/cache/bind";
// query-source address 192.168.5.122 port 53;
// forwarders {
// 219.83.116.186;
// };
};

zone "tkj.edu" {
type master;
file "/etc/bind/tkj";
};

zone "5.168.192.in-addr.arpa." {
type master;
file "/etc/bind/reverse";
};

after it, save and exit with type ":wq!"

and now you have to make the zone file and reverse zone file, in directory as you edited in file named.conf

root@debian#vi /etc/bind/tkj
and you have to put some configuration like this;
dns rev:
$TTL 604800
5.168.192.in-addr.arpa. IN SOA debian. root.tkj.edu. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Exipire
604800 ) ; Negative Cache TTL

;
@ IN NS debian.tkj.edu.
@ IN MX 10 debian.tkj.edu.
debian IN A 192.168.5.122
www IN CNAME debian.tkj.edu.


then save and exit, with type ":wq!"
after it, you must create reverse zone file
root@debian#vi /etc/bind/reverse
then put some configuration like this;

tkj's zone file :
$TTL 64800
@ IN SOA debian root.tkj.edu (
1 ; serial
7200 ; refresh
7200 ; retry
36000 ; expire
7200 ) ; mimimum
;
@ IN NS debian.tkj.edu.

debian IN A 192.168.5.122

122 IN PTR debian.tkj.edu.

then save and exit, with type ":wq!"

and now you should configure dns resolver.
Edit file of directory /etc/resolv.conf
and put some configuration there!

resolve dns:
search tkj.edu
nameserver 192.168.5.122
then save and exit with type ":wq"

and now you should configure the host file.

root@debian#vi /etc/hosts

put some configuration there!
127.0.0.1 localhost
192.168.5.122 debian.tkj.edu debian


Note: IP address in that domain is 192.168.5.122
and that host has domain tkj.edu

Ok guys, our tutor finished. Good luck...and try to operate it on your DNS Server!! :)
always here!!!
Debian Linux

1 komentar:

Zulfikar mengatakan...

anying cik a tuh ,..make basa sunda kehet teh dateu ngarti urang mah ..


Sunda_mode = on