Académique Documents
Professionnel Documents
Culture Documents
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.
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"; };
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. (
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