named.conf not available in etc folder – RHEL 5.4


Error scenario:  I try to setup DNS server configuration in RHEL 5.4.
I mount the ISO file of redhat and installed bind-9 series rpm file. 
After the installation when I try to start the name service it fails with 
[root@localhost ~]# service named start

Locating //etc/named.conf failed: [FAILED]

Root cause: We have not installed the caching-nameserver rpm and hence 
the name.conf file not available in /etc folder.The package caching-nameserver 
do not contain any /etc/named.conf file. 
Perhaps,/etc/named.caching-nameserver.conf is an alternative one.


Solution: We need to install the caching name server in the RHEL rpm package 
and run the command 

#rpm -ql caching-nameserver 
/etc/named.caching-nameserver.conf
/etc/named.rfc1912.zones
/usr/share/doc/caching-nameserver-9.3.3
/usr/share/doc/caching-nameserver-9.3.3/Copyright
/usr/share/doc/caching-nameserver-9.3.3/rfc1912.txt
/var/named/localdomain.zone
/var/named/localhost.zone
/var/named/named.broadcast
/var/named/named.ca
/var/named/named.ip6.local
/var/named/named.local
/var/named/named.zero
Then install the rpm # rpm –ivh caching-nameserver*.rpm
Your problem solves.
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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

%d bloggers like this: