Named.conf file missing Centos 5.

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Named.conf file missing Centos 5.
# 1  
Old 05-10-2012
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. Smilie
# 2  
Old 05-10-2012
Try to find the file in /etc directory:
Code:
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:
Code:
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:
Code:
 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:
Code:
 rpm2cpio rpm_pacakage.rpm | cpio -idmv

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

Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

Centos 7 Network Manager overwriting resolv.conf

Hi all, I need to add domain and search parameters to resolv.conf, however network manager overwrites. Setting the PEERDNS=No in the interface file seems to have no effect on this behaviour. Sadly I cannot just disable NM as these are not my hosts, I'm just attempting to install a platform... (3 Replies)
Discussion started by: Skrynesaver
3 Replies

2. Shell Programming and Scripting

perl Compare zone files in directory with what is listed in named.conf

I would really appreciate any assistance that I can get here. I am fairly new to perl. I am trying to rewrite my shell scripts to perl. Currently I have a shell script (using sed, awk, grep, etc) that gets a list of all of the zone files in a directory and then looks in named.conf for what... (0 Replies)
Discussion started by: brianjb
0 Replies

3. Red Hat

Named not starting in CentOS 6.3

I just installed bind* and then configured named.conf and zone files. but when I am stating named its giving below error. # /etc/init.d/named restart Stopping named: Starting named: and in log i... (1 Reply)
Discussion started by: Priy
1 Replies

4. UNIX for Advanced & Expert Users

error starting named service in CentOS

Hi Guys, I am configuring DNS BIND server I am getting following error, can someone please help ...below is my complete /etc/named.caching-nameserver.conf file :- # service named restart Stopping named: Starting named: Error in named... (1 Reply)
Discussion started by: patibandlavinay
1 Replies

5. Solaris

BIND 9 ---> no /etc/named.conf file after installation

Hi I installed BIND 9 from dvd image of my Solaris 10 (SUNWbind, SUNWbindr) and when I try to start it(svcadm enable network/dns/server), it says there is no /etc/named.conf file. Why is it so ? Should not this file be created during installation phase ? Do I have to create it manually ?... (0 Replies)
Discussion started by: presul
0 Replies

6. Shell Programming and Scripting

Finding missing files that are named sequentially with Perl?

Hello I am new to Perl, in fact I am on chapter one of the book. :) However I am in need of a Perl Script faster than I can finish the book. Perhaps someone can help me with my immediate need while I read my book. I have a directory with hundreds of files that are all named like... (4 Replies)
Discussion started by: newftronics
4 Replies

7. Solaris

basic question on sd.conf and lpc.conf file

Hello Guys, Do we need to configure this file only if we add SAN disk or even if we add local disk, do we need to modify? (4 Replies)
Discussion started by: mokkan
4 Replies

8. Shell Programming and Scripting

seeking help with perl to read named.conf

Hello, I am seeking help with someone with perl expertise that can create me a script that will read a named.conf file and create a csv or a text file on each of the zones that the named.conf contains. An excerpt of named.conf looks like: acl "our_nets" { 127.0.0.1/32; ... (2 Replies)
Discussion started by: richsark
2 Replies

9. Shell Programming and Scripting

Parse "masters" ip from named.conf

Hi there, Im' trying to make a script to parse the BIND configuration file from my slave DNS server and obtain a certain parameter. The named.conf file has this format: zone "0.170.20.10.in-addr.arpa" { type slave; file "0/./db.0.170.20.10.in-addr.arpa.bak"; allow-notify {... (2 Replies)
Discussion started by: Citricut
2 Replies

10. UNIX for Dummies Questions & Answers

can't find named.conf to configuration DNS

Help me! I have problem. I can't find named.conf file in /etc (Solaris 5.6,SPRAC) Please! (1 Reply)
Discussion started by: nghia77
1 Replies
Login or Register to Ask a Question