Named.conf file missing Centos 5.

hello everyone,

I have install centos 5 recently.The file /etc/named.conf not found. I have installed BIND using yum. so now what to do ?? should i create named.conf file manually ???
please help me.

thanks,
sharlin. :slight_smile:

Try to find the file in /etc directory:

find /etc -name "named.conf"

It should have been in /etc though.

You might need to double check if the BIND rpm got installed properly:

yum whatprovides /etc/named.conf
rpm -qa | egrep "bind|named"
yum install PACKAGENAME

If still there's no /etc/named.conf, download the particular RPM from the repository server and execute the following to check if it's really there in the package:

 rpm -qlp rpm_package.rpm
  

If it's there in the RPM package and still somehow not getting installed (which is highly unlikely), execute the following command to extract the contents of the RPM to the current directory without installing it:

 rpm2cpio rpm_pacakage.rpm | cpio -idmv
  

Then, copy the named.conf file to /etc:

cp ./etc/named.conf /etc

:b: