Installing bind9 in ubuntu 9.10

Step 1:
On the terminal the following command was issued,
sudo apt-get install bind9
Step 2:
In this step we have configured the named.conf.local file. Before editing this file we have backed it up by issuing the command,
sudo cp /etc/bind/named.conf.local /etc/bind/named.conf.local.bkup
Then we have edited the file issuing the command
sudo gedit /etc/bind/named.conf.local
After editing the file was like this,



zone "miah.com" {
type master;
file "/etc/bind/zones/miah.com.db";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
};
Step 3:
In this step we have edited the option file for this server named, named.conf.options.
Before editing it we have made a backup of this file as the same procedure described in step 1.
After editing the option file it looked like the following,
options {
directory "/var/cache/bind";
forwarders {
8.8.8.8;
};
auth-nxdomain no;    # conform to RFC1035
listen-on-v6 { any; };
};
Step 4:
In this step we have made a directory named zones inside the bind directory by issuing the command
sudo mkdir zones
And then inside the zones directory we have created two files named, miah.com.db and rev.0.168.192.in-addr.arpa by issuing the following command
sudo touch miah.com.db rev.0.168.192.in-addr.arpa
Step 5:
In this step we have configured the miah.com.db and rev.0.168.192.in-addr.arpa file. After the configuration files were looked like,
miah.com.db
$TTL 3D
@ IN SOA ns1.miah.com. admin.miah.com.(
2007062001
28800
3600
604800
38400
);
miah.com.           IN           NS                          ns1.miah.com.
nhddsk                 IN           A                             192.168.0.2
www     IN           CNAME                192.168.0.202
mta        IN           A             192.168.0.203
ns1         IN           A             192.168.0.201
gw          IN           A             192.168.0.254
TXT         "Network Gateway"
rev.0.168.192.in-addr.arpa
$TTL 3D
@IN SOA ns1.miah.com. admin.miah.com.(
2007062001
28800
604800
604800
86400
)
IN           NS          ns1.miah.com.
1              IN           PTR        gw.miah.com.
10           IN           PTR        nhddsk.miah.com.
Step 6:
In this step we have restarted the bind9 server by issuing the following command,
sudo /etc/init.d/bind9 restart
Step 7:
In this step we have tested the bind9 server that is it working properly or not by issuing the following command,
dig miah.com

No comments:

Post a Comment