Named not starting in CentOS 6.3 | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Named not starting in CentOS 6.3

Red Hat


Tags
dns error in centos 6, dns not working in rhel6, named error, named not starting, permission denied in named.conf

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-07-2013
Priy's Avatar
Priy Priy is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 5 September 2014, 2:46 AM EDT
Location: India
Posts: 32
Thanks: 3
Thanked 2 Times in 2 Posts
RedHat 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.


Code:
[root@SER ~]# /etc/init.d/named restart
Stopping named:                                            [  OK  ]
Starting named:                                            [FAILED]

and in log i got error:

Code:
Mar  7 06:22:24 SER named-sdb[5571]: starting BIND 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.6 -u named -t /var/named/chroot
Mar  7 06:22:24 SER named-sdb[5571]: built with '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-libtool' '--localstatedir=/var' '--enable-threads' '--enable-ipv6' '--with-pic' '--disable-static' '--disable-openssl-version-check' '--with-dlz-ldap=yes' '--with-dlz-postgres=yes' '--with-dlz-mysql=yes' '--with-dlz-filesystem=yes' '--with-gssapi=yes' '--disable-isc-spnego' '--with-docbook-xsl=/usr/share/sgml/docbook/xsl-stylesheets' '--enable-fixed-rrset' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS= -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' 'CPPFLAGS= -DDIG_SIGCHASE'
Mar  7 06:22:24 SER named-sdb[5571]: ----------------------------------------------------
Mar  7 06:22:24 SER named-sdb[5571]: BIND 9 is maintained by Internet Systems Consortium,
Mar  7 06:22:24 SER named-sdb[5571]: Inc. (ISC), a non-profit 501(c)(3) public-benefit 
Mar  7 06:22:24 SER named-sdb[5571]: corporation.  Support and training for BIND 9 are 
Mar  7 06:22:24 SER named-sdb[5571]: available at https://www.isc.org/support
Mar  7 06:22:24 SER named-sdb[5571]: ----------------------------------------------------
Mar  7 06:22:24 SER named-sdb[5571]: adjusted limit on open files from 4096 to 1048576
Mar  7 06:22:24 SER named-sdb[5571]: found 1 CPU, using 1 worker thread
Mar  7 06:22:24 SER named-sdb[5571]: using up to 4096 sockets
Mar  7 06:22:24 SER named-sdb[5571]: SDB ldap zone database module loaded.
Mar  7 06:22:24 SER named-sdb[5571]: SDB postgreSQL DB zone database module loaded.
Mar  7 06:22:24 SER named-sdb[5571]: SDB sqlite3 DB zone database module loaded.
Mar  7 06:22:24 SER named-sdb[5571]: SDB directory DB zone database module loaded.
Mar  7 06:22:24 SER named-sdb[5571]: loading configuration from '/etc/named.conf'
Mar  7 06:22:24 SER named-sdb[5571]: none:0: open: /etc/named.conf: permission denied
Mar  7 06:22:24 SER named-sdb[5571]: loading configuration: permission denied
Mar  7 06:22:24 SER named-sdb[5571]: exiting (due to fatal error)

---------- Post updated at 05:22 PM ---------- Previous update was at 05:16 PM ----------

Adding named check results :


Code:
[root@SER ~]# named-checkconf /etc/named.conf
[root@SER ~]# named-checkzone priyank12 /var/named/chroot/var/named/priyank12.flz
zone priyank12/IN: loaded serial 2010041106
OK
[root@SER ~]# named-checkzone priyank12 /var/named/chroot/var/named/priyank12.rlz 
zone priyank12/IN: loaded serial 2010041102
OK
[root@SER ~]#

and permissions of files:

Code:
[root@SER ~]# ll /var/named/chroot/var/named/
total 28
-rw-r----- 1 root named 1892 Feb 18  2008 named.ca
-rw-r----- 1 root named  152 Dec 15  2009 named.empty
-rw-r----- 1 root named  152 Jun 21  2007 named.localhost
-rw-r----- 1 root named  168 Dec 15  2009 named.loopback
-rw-r--r-- 1 root named  533 Mar  7 04:59 priyank12.flz
-rw-r--r-- 1 root named  719 Mar  7 04:59 priyank12.flz.bkp
-rw-r--r-- 1 root named  606 Mar  7 04:59 priyank12.rlz
[root@SER ~]# 

[root@SER ~]# ll /var/named/chroot/etc/named.conf 
-rw-r----- 1 root root 2555 Mar  7 04:59 /var/named/chroot/etc/named.conf
[root@SER ~]# ll /etc/named.conf
lrwxrwxrwx 1 root root 32 Mar  7 04:59 /etc/named.conf -> /var/named/chroot/etc/named.conf

Sponsored Links
    #2  
Old 03-11-2013
verdepollo's Avatar
verdepollo verdepollo is offline
Registered User
 
Join Date: Mar 2010
Last Activity: 3 September 2014, 11:17 AM EDT
Location: Mexico
Posts: 725
Thanks: 11
Thanked 106 Times in 102 Posts
From the info you provide it seems you're using a chroot'ed environment. I bet the issue relies in how you configured the chroot permissions.

What kind of chroot environment are you using? (manual chroot, OpenSSH jail, rssh, etc?).

Perhaps some ACL getting in the way?

Is the owner of the file the same as the default named user (usually named "named")
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
error starting named service in CentOS patibandlavinay UNIX for Advanced & Expert Users 1 10-25-2012 03:58 PM
How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation Ananthcn Red Hat 2 08-20-2012 05:07 AM
Named.conf file missing Centos 5. sharlin Red Hat 1 05-10-2012 03:29 PM



All times are GMT -4. The time now is 05:40 PM.