Thursday 10 September 2009

DNS Settings -Linux

Packages to install:
#rpm -ivh bind-9.2.4-2.i386.rpm --aid
#rpm -ivh cashing-nameserver-7.3-3.noarch.rpm --aid
#rpm -ivh bind-utils-9.2.4-2.i386.rpm --aid

Configuration files:
#vi /etc/named.conf
Client side configuration files:
#vi /etc/resolv.conf
Edit the server config file
eg: do not delete anything from this file, edit only the particular area.
#vi /etc/named.conf
options { directory "/var/named";
};
zone "note.book.com." IN {
type master;
file "localdomain.zone";
};
zone "1.10.10.in-addr.arpa" IN{
type master;
file "named.local";
};
:wq - save the file and exit
To check error in the configured file
#named-checkconf /etc/named.conf
Now edit the localdomain.zone file and named.local file
#vi /var/named/localdomain.zone
replace the "localhost" with note.book.com.
and change the ip address to 10.10.1.1
#vi /var/named/named.local
here also replace the "localhost" with note.book.com.
and enter the last no. of the ipaddress. here its 1
#service named restart -> to restart the named configuration files
# nslookup 10.10.1.1
#nslookup note.book.com

in both the case you should get the name to address and back

No comments:

Post a Comment