LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-10-2012, 08:02 AM   #1
jayway
LQ Newbie
 
Registered: Nov 2011
Posts: 11

Rep: Reputation: Disabled
DNS can't start


i just installed bind, bind-chroot,bind-devel,bind-lib,bind-utils,
then edit the named.conf and the file of zone as following :

/etc/named.conf
Code:
options {
        listen-on port 53 { any; };
#       listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     { any; };
        recursion yes;

        dnssec-enable yes;
        dnssec-validation yes;
        dnssec-lookaside auto;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
        type hint;
        file "named.ca"; };



zone "jayway.com"IN{
   type master;
   file  "named.jayway.com";

};
include "/etc/named.rfc1912.zones";
/var/named/named.jayway.com
Code:
$TTL 1D
@       IN SOA dns.jayway.com.   root.www.jayway.com. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
@       IN NS   dns.jayway.com.
dns.jayway.com. IN A    192.168.0.1
ftp.jayway.com.  IN A      192.168.0.2
www.jayway.com.   IN CNAME   dns.jayway.com.
mail.jayway.com. IN  CNAME  dns.jayway.com.
@                IN MX   5  mail.jayway.com.
but when i started the service ,it didn't show synax errrors,just shows faied.
Code:
Stopping named:                                            [  OK  ]
Starting named:                                            [FAILED]
then i scan the /var/log/messages
it says:
Code:
Mar 10 22:00:35 jayway named[1930]: starting BIND 9.7.3-P3-RedHat-9.7.3-8.P3.el6_2.2 -u named -t /var/named/chroot
Mar 10 22:00:35 jayway named[1930]: built with '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i686-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/lib' '--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' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i686-redhat-linux-gnu' 'CFLAGS= -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' 'CPPFLAGS= -DDIG_SIGCHASE'
Mar 10 22:00:35 jayway named[1930]: adjusted limit on open files from 1024 to 1048576
Mar 10 22:00:35 jayway named[1930]: found 1 CPU, using 1 worker thread
Mar 10 22:00:35 jayway named[1930]: using up to 4096 sockets
Mar 10 22:00:35 jayway named[1930]: loading configuration from '/etc/named.conf'
Mar 10 22:00:35 jayway named[1930]: none:0: open: /etc/named.conf: permission denied
Mar 10 22:00:35 jayway named[1930]: loading configuration: permission denied
Mar 10 22:00:35 jayway named[1930]: exiting (due to fatal error)
[root@jayway ~]#

does anybody can give me some tips?
 
Old 03-10-2012, 08:17 AM   #2
thinknix
Member
 
Registered: Nov 2008
Distribution: Lots!
Posts: 178

Rep: Reputation: 58
Quote:
Mar 10 22:00:35 jayway named[1930]: loading configuration from '/etc/named.conf'
Mar 10 22:00:35 jayway named[1930]: none:0: open: /etc/named.conf: permission denied
Since this a chrooted server, the named.conf should be in /var/named/chroot/etc/named.conf. If it is there, can you show us the permissions/ownership on that file?
 
Old 03-11-2012, 12:56 AM   #3
splinux
Member
 
Registered: Jun 2011
Location: Sri Lanka
Distribution: centos,redhat,ubuntu
Posts: 90

Rep: Reputation: Disabled
Please disable the SE Linux and reboot the machine.. then run the DNS ?
 
Old 03-11-2012, 04:02 AM   #4
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
You may also want to look into, named-checkconf and named-checkzone.
They come in handy for testing config changes on live systems.
 
  


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
I need to start migrating to a new domain (DNS/BIND) rsmccain Linux - General 0 11-16-2006 09:58 PM
start dns finsh Linux - Networking 3 05-02-2006 10:58 AM
DNS Start Process mairul Linux - Networking 2 01-17-2004 04:32 PM
Can't start DNS romel Linux - Networking 0 01-12-2004 04:58 AM
DNS noob needs to know where to start Beelzebub Linux - Networking 2 05-11-2002 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:43 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
Open Source Consulting | Domain Registration