LinuxQuestions.org
Visit Jeremy's Blog.
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, 02: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, 03: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 03:09 PM.
 
Old 04-13-2011, 03: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, 03: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, 09:49 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

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


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

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

All times are GMT -5. The time now is 10:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration