LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-22-2011, 10:24 PM   #1
dthims
Member
 
Registered: Mar 2003
Posts: 50

Rep: Reputation: 1
slave dns setup question


setup - one primary dns and one slave dns. zone transfer works, internet works, dig lookup works. if i bring down the primary, everything stops working. slave dns config below. thnx in advance

zone "2.168.192.in-addr.arpa." IN {
type slave;
file "slaves/192.168.2.db";
masters { 192.168.2.5 port 53;
};
};
zone "aaa.com." IN {
type slave;
file "slaves/aaa.com.db";
masters { 192.168.2.5 port 53;
};
};
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;
};
};



include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
 
Old 03-23-2011, 01:43 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
primary and slave dns in the same server ?
otherwise please look at /var/log/messages
in slave server
 
Old 03-23-2011, 11:20 AM   #3
dthims
Member
 
Registered: Mar 2003
Posts: 50

Original Poster
Rep: Reputation: 1
/var/log/messages no error messages. this is from the slave machine

dig aaa.com

; <<>> DiG 9.7.3-RedHat-9.7.3-1.fc14 <<>> aaa.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55819
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;aaa.com. IN A

;; ANSWER SECTION:
aaa.com. 3600 IN A 192.168.2.19
aaa.com. 3600 IN A 192.168.2.5

;; AUTHORITY SECTION:
aaa.com. 3600 IN NS ns1.
aaa.com. 3600 IN NS ns2.

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Mar 23 11:16:36 2011
;; MSG SIZE rcvd: 99
 
Old 03-23-2011, 01:28 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Quote:
--snip--
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;
--snip--
This is because the slave is listening on the local loopback inteface only and it only allows queries from localhost.
 
Old 03-23-2011, 04:27 PM   #5
dthims
Member
 
Registered: Mar 2003
Posts: 50

Original Poster
Rep: Reputation: 1
thnx bathory, those changes worked. much obliged.
 
  


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
Before setup DNS and after DNS question sportivo888 Linux - Enterprise 7 12-13-2009 10:47 PM
how to configure master dns in windows2003 server and its slave dns in rhel5 suneellinux Linux - Newbie 1 04-11-2008 06:13 PM
BIND DNS slave on internal network named.conf question: Lantzvillian Linux - Server 3 02-05-2008 10:45 PM
Slave Dns Question kemplej Linux - Networking 5 12-23-2004 02:58 PM
DNS named.conf master/slave question pao Linux - Networking 5 11-12-2004 05:50 AM

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

All times are GMT -5. The time now is 07:29 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