DNS server using slackware 12.2
January 10, 2010 4 Comments
1. bind instalation
I assumed that bind located in directory home/resource
root@ns1:~#/cd /home/resource/
root@ns1:/home/resource#installpkg bind-9.4.2_P2-i486-1.tgz
2. editing file /etc/named.conf
root@ns1:~#/vim /etc/named.conf
you must add followed statement in the end :
this line below is explain about the definition of DNS server as Primary Name Server for domain
racolo.net and file forward is file name that is file zone from domain racolo.net.
zone “racolo.net” IN {
type master;
file “caching-example/db.racolo.net”;
allow-update { none ; };
};
this line below is contain reverse DNS zone. this is needed to DNS server can translate IP Address.
Zone “122.14.10.in-addr.arpa” IN {
type master;
file “caching-example/db.10.14.122”;
allow-update{ none ; };
};
Save that file.
3.copy file localhost.zone and named.local
root@ns1:~#cd /var/named/caching-example
root@ns1: /var/named/caching-example#cp localhost.zone db.racolo.net
root@ns1: /var/named/caching-example#cp named.local db.10.14.122
4.setting zone file db.racolo.net
name server configuration for domain racolo.net in host ns1.racolo.net with IP Address 10.14.122.252
is following:
root@ns1: /var/named/caching-example#vim db.racolo.net
5.setting zone file db.10.14.122
root@ns1: /var/named/caching-example#vim db.10.14.122
6.setting /etc/hosts.conf
root@ns1: /var/named/caching-example#vim /etc/hosts.conf
It must contain statement :
order hosts, bind
multi on
7.setting /etc/host
root@ns1: /var/named/caching-example#vim /etc/host
add :
10.14.122.252 racolo.net
8.setting /etc/resolv.conf
root@ns1: /var/named/caching-example#vim /etc/resolv.conf
it must be :
search racolo.net
nameserver 10.14.122.252
9.change file access rc.bind
root@ns1:~ #chmod 755 /etc/rc.d/rc.bind
10.running bind
root@ns1: ~#/etc/rc.d/rc.bind start
11.Checking for DNS configuration
root@ns1: ~#nslookup racolo.net
root@ns1: ~#host 10.14.122.252
request query
root@ns1: ~#dig racolo.net
root@ns1: ~#ping racolo.net
12. if with command ping the result is reply, so the configuration is right.
ngeriii…
racolo[dot]net
just try om , , ,
makasih infonya kakak ….
oke….ijin nyoba yah….