LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-13-2011, 01:57 PM   #1
cyberb
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: Disabled
CentOS DNS error in named configuration


I'm a grad student new to Linux. My professor has asked us to setup a CentOS 5.5 DNS server using VMware. When I try to start the DNS server I receive the error:

Error in named configuration
/etc/named.conf: permission denied

I've changed the permissions (using "all 7's") so the files, directories, and links (/var/named/chroot...) are wide open and still receive the error.

Anyone seen this before? Any help would be appreciated.
 
Old 04-13-2011, 02:08 PM   #2
sibe
Member
 
Registered: Apr 2011
Location: Jakarta, Indonesia
Distribution: Fedora, CentOS
Posts: 122

Rep: Reputation: 21
Did you install bind-chroot package?
What's your SELinux status?

Last edited by sibe; 04-13-2011 at 02:09 PM.
 
Old 04-13-2011, 02:17 PM   #3
cyberb
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sibe View Post
Did you install bind-chroot package?
What's your SELinux status?
I installed bind-chroot using YUM.

SELINUX=enforcing
SELINUXTYPE=targeted
SETLOCALDEFS=0

But to be clear...I had to google SELinux and don't know what these mean or do.
 
Old 04-13-2011, 02:27 PM   #4
sibe
Member
 
Registered: Apr 2011
Location: Jakarta, Indonesia
Distribution: Fedora, CentOS
Posts: 122

Rep: Reputation: 21
Quote:
But to be clear...I had to google SELinux and don't know what these mean or do.
Ok, then you'd better disable SELinux just to make things easier first.

Try this; from console, type setenforce 0 to loosen it a bit, then restart your bind. If your your bind up, then SELinux was the thing that prevented your bind to get started.

Now, put SELinux into a disabled state; edit the /etc/selinux/config and change the value of SELINUX=enforcing to SELINUX=disabled.

Hope it may help.

----
sibe
 
Old 04-13-2011, 08:49 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You'll find this worth bookmarking/reading http://www.linuxtopia.org/online_boo...ion/index.html
 
  


Reply



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
Problem with DNS on CentOS cannot service named restart dalvis Linux - Newbie 7 11-25-2009 04:10 PM
reg named.conf configuration file of BIND DNS bzlaskar Linux - Server 1 12-27-2007 01:40 PM
i have problem during the dns configuration in centos iyub Linux - Newbie 1 10-03-2007 07:41 AM
DNS /var/named/named.hosts Richtown Linux - Networking 3 04-23-2007 02:04 PM
DNS error from /var/log Named[156] guanyu Linux - General 3 12-17-2006 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:44 AM.

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
Open Source Consulting | Domain Registration