Sponsored Content
Operating Systems Linux Red Hat Named.conf file missing Centos 5. Post 302638703 by admin_xor on Thursday 10th of May 2012 03:29:13 PM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
rpm2cpio(1)							   User Commands						       rpm2cpio(1)

NAME
rpm2cpio - convert Red Hat Package (RPM) to cpio archive SYNOPSIS
rpm2cpio [file.rpm] DESCRIPTION
The rpm2cpio utility converts the .rpm file specified as its sole argument to a cpio archive on standard output. (See NOTES.) If no argu- ment is given, an rpm stream is read from standard input. In both cases, rpm2cpio will fail and print a usage message if the standard out- put is a terminal. Therefore, the output is usually redirected to a file or piped through the cpio(1) utility. EXAMPLES
Example 1 Converting an rpm file example% rpm2cpio Device3Dfx-1.1-2.src.rpm | cpio -itv CPIO archive found! -rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif -rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz -rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec 31 blocks Example 2 Converting from standard input example% rpm2cpio < Device3Dfx-1.1-2.src.rpm | cpio -itv CPIO archive found! -rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif -rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz -rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec 31 blocks ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWrpm | +-----------------------------+-----------------------------+ SEE ALSO
cpio(1), attributes(5) NOTES
rpm2cpio handles versions 3 and 4 RPMs. SunOS 5.11 20 Aug 2001 rpm2cpio(1)
All times are GMT -4. The time now is 06:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy