Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-22-2011, 10:24 PM
|
#1
|
Member
Registered: Mar 2003
Posts: 50
Rep:
|
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";
|
|
|
03-23-2011, 01:43 AM
|
#2
|
Member
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Rep:
|
primary and slave dns in the same server ?
otherwise please look at /var/log/messages
in slave server
|
|
|
03-23-2011, 11:20 AM
|
#3
|
Member
Registered: Mar 2003
Posts: 50
Original Poster
Rep:
|
/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
|
|
|
03-23-2011, 01:28 PM
|
#4
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
|
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.
|
|
|
03-23-2011, 04:27 PM
|
#5
|
Member
Registered: Mar 2003
Posts: 50
Original Poster
Rep:
|
thnx bathory, those changes worked. much obliged.
|
|
|
All times are GMT -5. The time now is 07:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|