DNS server using slackware 12.2

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

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 :     racolo.net

8.setting /etc/resolv.conf
root@ns1: /var/named/caching-example#vim /etc/resolv.conf
it must be  :
search racolo.net

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

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.


4 Responses to DNS server using slackware 12.2

  1. somphil says:

    racolo[dot]net 😀

  2. astroboyz says:

    makasih infonya kakak ….

  3. vempuzka says:

    oke….ijin nyoba yah….

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: