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 09-26-2012, 06:08 AM   #1
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
DNS configuration Problem


Assalam o Alaikum!

When I tried to start named service it failed.

My scenario is
192.168.1.91 DNS server
192.168.1.93 is its client


named.conf:

options {
listen-on port 53 { 127.0.0.1; };
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 { localhost; };
recursion yes;

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

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

managed-keys-directory "/var/named/dynamic";
};

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

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

zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa.zone";
allow-update { 192.168.1.0/24 ; };
};


zone "mydomain.com" {
type master;
file "mydomain.com.zone";
allow-update { 192.168.1.0/24; };
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";


Please help;

---------- Post added 09-26-12 at 07:09 AM ----------

I tried to read log /var/messages but no any info there
 
Old 09-26-2012, 07:14 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

If starting named fails, it should be loggwed in some logfile. If it isn't /var/log/messages, it could be /var/log/syslog, or perhaps the file named.run specified in the logging section of bind.
You can also use named-checkconf to test configuration.

Quote:
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
If you're going to use this bind installation, as a resolver for your network, then you need to comment out (or delete the above 2 lines)

Cheers
 
Old 09-26-2012, 07:50 AM   #3
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
I have commented above two lines, there is no existance /var/log/syslog also couldn't find named.run in /var/named/data/ or any other place. Still having same problem
 
Old 09-26-2012, 07:54 AM   #4
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
One line I found in /var/log/messages
Sep 26 07:05:13 zohaibserver nm-dispatcher.action: nm_dispatcher_action: Invalid connection: '(null)' / 'connection setting not found' invalid: 1

Is it a problem?
 
Old 09-26-2012, 08:24 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Quote:
Originally Posted by uk.engr View Post
One line I found in /var/log/messages
Sep 26 07:05:13 zohaibserver nm-dispatcher.action: nm_dispatcher_action: Invalid connection: '(null)' / 'connection setting not found' invalid: 1

Is it a problem?
This is not a bind problem. It has to do with Network Manager

Regarding bind, you can try to start it in debug mode in foreground and see if you find anything. You didn't mention your distro so in the command bellow replace "-u named" with the user that runs bind in your distro.
Code:
named -d3 -g -u named

Quote:
I have commented above two lines, there is no existance /var/log/syslog also couldn't find named.run in /var/named/data/ or any other place.
If you're not running named chrooted, the file is located under /var/named. If it runs chrooted under a directory/var/named/chroot for example, the file is located in /var/named/chroot/var/named/named.run
 
Old 09-28-2012, 02:32 AM   #6
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
I have done some changes in named.conf. Now I am getting following errors:

Errors
Error in named configuration:
zone 1.168.192.in-addr.arpa/IN: loading from master file 1.168.192.in-addr.arpa.zone failed: file not found
zone 1.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/1.168.192.in-addr.arpa/IN: file not found
zone mydomain.com/IN: loading from master file mydomain.com.zone failed: file not found
zone mydomain.com/IN: not loaded due to errors.
_default/mydomain.com/IN: file not found
zone localhost.localdomain/IN: loading from master file named.localhost failed: file not found
zone localhost.localdomain/IN: not loaded due to errors.
_default/localhost.localdomain/IN: file not found
zone localhost/IN: loading from master file named.localhost failed: file not found
zone localhost/IN: not loaded due to errors.
_default/localhost/IN: file not found
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loading from master file named.loopback failed: file not found
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: not loaded due to errors.
_default/1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: file not found
zone 1.0.0.127.in-addr.arpa/IN: loading from master file named.loopback failed: file not found
zone 1.0.0.127.in-addr.arpa/IN: not loaded due to errors.
_default/1.0.0.127.in-addr.arpa/IN: file not found
zone 0.in-addr.arpa/IN: loading from master file named.empty failed: file not found
zone 0.in-addr.arpa/IN: not loaded due to errors.
_default/0.in-addr.arpa/IN: file not found
[FAILED]


named.conf

options {
listen-on port 53 { any; };
};

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

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

zone "1.168.192.in-addr.arpa" {
type master;
file "/var/named/1.168.192.in-addr.arpa.zone";
allow-update { 192.168.1.0/24 ; };
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
 
Old 09-28-2012, 03:14 AM   #7
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

You need to add a
Code:
directory "/var/named";
in named.conf (which you had it in your previous post)
And of course all these zone files should exist under /var/named

Regards
 
Old 09-28-2012, 03:26 AM   #8
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Rep: Reputation: 0
Quote:
Errors
Error in named configuration:
zone 1.168.192.in-addr.arpa/IN: loading from master file 1.168.192.in-addr.arpa.zone failed: file not found
zone 1.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/1.168.192.in-addr.arpa/IN: file not found
zone mydomain.com/IN: loading from master file mydomain.com.zone failed: file not found
you need to create mydomain.com.zone and mydomain.com.rr.zone files in /var/named/
 
Old 09-28-2012, 04:58 AM   #9
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
bathory. I have added your stated line but still have same problem
 
Old 09-28-2012, 05:16 AM   #10
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
abhinav4 please:
[root@server named]# pwd
/var/named
[root@server named]# ls
1.168.192.in-addr.arpa.zone data named.ca named.localhost slaves
dynamic mydomain.com.zone named.empty named.loopback
[root@server named]#

what is this file mydomain.com.rr.zone? Is there any thing missing?
 
Old 09-28-2012, 07:17 AM   #11
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Quote:
Originally Posted by uk.engr View Post
bathory. I have added your stated line but still have same problem
If you've added the "directory .." option and still bind does not find the zone files, I guess it's trying to start chrooted.
From the icon in your profile, looks like you're running fedora. In this case the jail directory is /var/named/chroot and the zone files should be located under /var/named/chroot/var/named
If not running fedora, read your distro's documentation about running bind chrooted

Regards
 
Old 09-29-2012, 03:12 AM   #12
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
its fedora.


Bethroy, I have installed bind-chroot and then copied configuration files in /var/named/chroot/etc and zone files in /var/named/chroot/var/named.

Now that error eliminated but this occurs:
[root@server etc]# service named restart
Stopping named: [ OK ]
Starting named: [FAILED]
[root@server etc]# vim named.conf

again no log generates anywhere i couldn't find named.run in /var/named/chroot/var/named or in /var/named/ or in /var/named/data.

Last edited by uk.engr; 09-29-2012 at 03:13 AM.
 
Old 09-29-2012, 03:43 AM   #13
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
I guess it's some permissions problem, but cannot be sure without debugging.
Since you're running named chrooted, use:
Code:
/usr/sbin/named -g -d3 -u named -t /var/named/chroot
to start it in debug mode and see where it fails

Regards
 
Old 10-01-2012, 01:42 AM   #14
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
I found following error

root@server ~]# /usr/sbin/named -g -d3 -u named -t /var/named/chroot
/usr/sbin/named: symbol lookup error: /usr/sbin/named: undefined symbol: dns_cache_create3
[root@server ~]#
 
Old 10-01-2012, 02:26 AM   #15
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
According to this, you need to update the bind-libs package
 
  


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
DNS configuration problem in Fedora Core 11., linuxjamil Linux - Server 1 10-15-2009 08:59 AM
having problem in seting dns configuration in fedora9 perky.nishi Linux - Networking 2 03-20-2009 11:22 AM
i have problem during the dns configuration in centos iyub Linux - Newbie 1 10-03-2007 07:41 AM
DNS configuration problem asimpeter Linux - Networking 1 03-26-2004 10:11 AM
problem with dns configuration ssrikant Linux - General 12 05-22-2003 04:44 PM


All times are GMT -5. The time now is 07:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration