LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2012, 12:45 PM   #1
rajslinux
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: 0
Configuring DNS on el5 - error starting named - Locating //etc/named.conf failed


Hi, i've never attempted this before please help -getting the following error when attempting to config DNS


I have installed :
yum install bind-libs bind bind-utils
yum install system-config-bind

[root@rac1 ~]# /etc/init.d/named start
Locating //etc/named.conf failed:
[FAILED]

[root@rac1 ~]# locate named.conf
/etc/named.conf.old
/etc/dbus-1/system.d/named.conf
/usr/share/doc/bind-9.3.6/sample/etc/named.conf
/usr/share/logwatch/default.conf/services/named.conf
/usr/share/man/man5/named.conf.5.gz
/usr/share/system-config-bind/profiles/default/named.conf
[root@rac1 ~]#
[root@rac1 ~]# rpm -qa|grep bin
bind-9.3.6-20.P1.el5
bind-libs-9.3.6-20.P1.el5
binutils-2.17.50.0.6-14.el5
bind-utils-9.3.6-20.P1.el5
system-config-bind-4.0.3-5.0.1.el5
ypbind-1.19-12.el5
bind-libs-9.3.6-20.P1.el5


Please let me know if you need any further information
 
Old 04-12-2012, 12:54 PM   #2
tuxaeterna
LQ Newbie
 
Registered: Apr 2012
Location: the Netherlands
Distribution: Fedora
Posts: 4

Rep: Reputation: Disabled
Hi,

You need to have a named.conf in your /etc/ directory. The named service cannot start without a conf file.
 
Old 04-12-2012, 12:57 PM   #3
rajslinux
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reponse

I cant see a file called named.conf in /etc
How do I generate this file?

Ignore /etc/named.conf.old - I copied it from else where without knowing what I'm doing which caused other errors. Have since reinstalled the two rpms listed above.

Last edited by rajslinux; 04-12-2012 at 01:04 PM.
 
Old 04-12-2012, 01:07 PM   #4
tuxaeterna
LQ Newbie
 
Registered: Apr 2012
Location: the Netherlands
Distribution: Fedora
Posts: 4

Rep: Reputation: Disabled
Hi,

You can start off by copying one of the example files to /etc/.
You already located such example in /usr/share/system-config-bind/profiles/default/named.conf

Just copy it:

cp /usr/share/system-config-bind/profiles/default/named.conf /etc

Then you can modify the file to your needs. Be sure to read the documentation. The manual appears like this:

man named.conf
 
Old 04-12-2012, 07:35 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
For RHEL5, see the manual chap 16 of http://www.linuxtopia.org/online_boo...ion/index.html.
Note that the recommended method there (and it shows howto) is to use a chrooted bind
 
Old 04-13-2012, 02:03 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by rajslinux View Post
Thanks for the reponse

I cant see a file called named.conf in /etc
How do I generate this file?

Ignore /etc/named.conf.old - I copied it from else where without knowing what I'm doing which caused other errors. Have since reinstalled the two rpms listed above.
you have not yet copied your named.conf and simply copying will not help you run a DNS server. You need to configure it as per your requirement i.e. cache, master, slave , forward, reverse.

hit a search on google where you will find bunch of guides to help you configure BIND DNS
 
Old 04-13-2012, 06:18 AM   #7
rajslinux
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: 0
Please advise which one of the following I should copy to /etc/named.conf

/etc/dbus-1/system.d/named.conf
/usr/share/doc/bind-9.3.6/sample/etc/named.conf
/usr/share/logwatch/default.conf/services/named.conf
/usr/share/man/man5/named.conf.5.gz
/usr/share/system-config-bind/profiles/default/named.conf
 
Old 04-13-2012, 06:24 AM   #8
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
follow this link

DNS configuration in RHEL (Forward and reverse zone)
 
Old 04-13-2012, 07:17 AM   #9
rajslinux
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks I'll review the link


I setting up a 2 nodes oracle 11.2.0.2 RAC cluster using oracle virtual box. The DNS is being setup on node 1 for the cluster to enable the SCAN address to work.
Are you awrae of any definative documentation I can follow to configure the DNS - sys admin skills very basic - my primary goal is to enable me to get the oracle install completed successfully. - Thanks in advance
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
named-checkconf has errors, but Starting named: FAILED windstory Linux - Newbie 13 12-02-2011 12:54 AM
named does not accept queries but allow-query is {any;} in /etc/named.conf mchait Linux - Server 3 04-12-2010 01:09 AM
adding a zone in named.conf in centos 5.2 /etc/named.conf coolhunkank Linux - Newbie 2 05-14-2009 09:45 AM
service named cant start error in named.conf file gayanasa Linux - Server 2 07-02-2008 10:58 AM
cannot find named.conf and /var/named kaushikma Red Hat 1 02-07-2004 01:49 PM


All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration