DNS Server Configuration in Debian

1. apt-get install bind9

2. Append following lines at  /etc/bind/named.conf.local

3. zone “nazim.kuet.ac.bd” {

type master;

file “/etc/bind/nazim.kuet.ac.bd.zone”;

};

zone “172.16.151.in-addr.arpa”{

type master;

file “/etc/bind/172.16.151.zone”;

};

3. cat /etc/bind/db.local> /etc/bind/nazim.kuet.ac.bd.zone

4. cat /etc/bind/db.127> /etc/bind/172.16.151.zone

5. Edit  /etc/bind/nazim.kuet.ac.bd.zone as

replace localhost with nazim.kuet.ac.bd

replace 127.0.0.1 with 172.16.151.15

Delete Last Line

6. Edit  /etc/bind/172.16.151.zone as

replace localhost with nazim.kuet.ac.bd

replace 1.0.0 with 15

7. Edit  /etc/resolv.conf as

Replace localdomain with nazim.kuet.ac.bd

Append nameserver 172.16.151.15

 

thats it… Have a good day !!!!

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s