Sponsored Content
Operating Systems Linux Red Hat Named not starting in CentOS 6.3 Post 302776949 by Priy on Thursday 7th of March 2013 06:52:06 AM
Old 03-07-2013
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

 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

named

Dear All , Kindly i would like to start the named whenever the system reboot , currently i start it manually . for more info. i have both named , one from SUN , and other one i installed it from internet , now i want the one from SUN to start automatically when rebooting . its path is :... (5 Replies)
Discussion started by: tamemi
5 Replies

2. UNIX for Advanced & Expert Users

named and nslookup

Guys , Am using Linux - Red Hat 6.1 . My DNS and nslookup command was working fine and ppl. can resolve through this server . but i changed something in /etc/named.conf , that stopped the DNS . The named proccess is working , but nslookup command is not , i get this error message : ... (3 Replies)
Discussion started by: tamemi
3 Replies

3. Red Hat

Named.conf file missing Centos 5.

hello everyone, I have install centos 5 recently.The file /etc/named.conf not found. I have installed BIND using yum. so now what to do ?? should i create named.conf file manually ??? please help me. thanks, sharlin. :) (1 Reply)
Discussion started by: sharlin
1 Replies

4. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

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

6. UNIX for Dummies Questions & Answers

How to grep a line not starting with # from a file (there are two lines starting with # and normal)?

e.g. File name: File.txt cat File.txt Result: #INBOUND_QUEUE=FAQ1 INBOUND_QUEUE=FAQ2 I want to get the value for one which is not commented out. Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
All times are GMT -4. The time now is 04:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy