Vous êtes sur la page 1sur 2

I am going to show you how to install bind 9 in ubuntu server, in four (4) steps and the final one

we are going to test it. First of foremost lets assumed we are login to terminal as root (sudoer). Now when we get there lets type in this command into terminal.

sudo apt-get install bind9

We need to add faye.com domain to bind configuration file /etc/bind/named.conf.local Open this file and append following text (zone and reverse zone for faye.com): $ sudo nano /etc/bind/named.conf.local Add faye.com zone:

zone "faye.com" { type master; file "/etc/bind/zones/faye.com.zone"; }; zone "1.55.202.in-addr.arpa" { type master; file "/etc/bind/zones/rev.1.55.202.in-addr.arpa"; };

Now lets save the file.

$ sudo mkdir /etc/bind/zones

Step # 4: Create a zone file for faye.com domain:

Now lets create a zone file /etc/bind/zones/faye.com.zone $ sudo vi /etc/bind/zones/faye.com.zone

Now lets Append the following text:

faye.com. IN SOA 2006071801 28800 3600 604800 38400 ) faye.com. IN NS faye.com. IN MX www mta ns1 IN IN IN

ns1.faye.com. admin.faye.com. (

ns1.faye.com. 10 mta.faye.com. A A A 202.55.1.2 202.55.1.2 202.55.1.2

Create the reverse zone file: $ sudo vi /etc/bind/zones/rev.1.55.202.in-addr.arpa Now lets Append the following text again:
@ IN SOA ns1.faye.com. admin.faye.com. ( 2006071801; serial 28800; refresh, seconds 604800; retry, seconds 604800; expire, seconds 86400 ); minimum, seconds 2 IN IN NS ns1.faye.com. PTR faye.com

Okay now lets Save the file and restart the BIND server: $ sudo /etc/init.d/bind9 restart Lets test it now!!! $ nslookup faye.com Server: 202.55.1.2 Address: 202.55.1.2#53 Name: faye.com Address: 202.55.1.2 Thank you all and hope you enjoy this brief lecture. By Mohamed Faye

Vous aimerez peut-être aussi