LinuxQuestions.org
Review your favorite Linux distribution.
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 01-17-2014, 03:00 PM   #1
simon@tpmcomm.com
LQ Newbie
 
Registered: Aug 2012
Posts: 4

Rep: Reputation: Disabled
DNS master/slave relationship not functioning as expected


Hello,

We have here what appears to be a master/slave set up.

The master is inside our network. It is also a slave to another master inside our network. It is a master to external domains.

ns1.domain.com and ns2.domain.com appear to resolve correctly from outside. I can do nslookups and get responses direct from both ns1 and ns2 outside. However, when I stop bind service on ns1, email stops functioning and domains stop resolving, both inside our network and out.

zone updates appear to work fine. I can still query ns2 when ns1 is down successfully.

section of named.conf on master

view "External_Hosts" {
match-clients {
any;
};
recursion no;
zone "domain.com" {
type master;
file "/var/named/domain.com.External_Hosts.hosts";
notify yes;
};
zone "domain2.com" {
type master;
file "/var/named/domain2.com.External_Hosts.hosts";
};
};
server 50.57.222.x {
};

===========
section of named.conf on slave

zone "tpmcomm.com" IN {
type slave;
masters { 68.179.104.x; };
file "slaves/domain.com.hosts";
allow-transfer { any; };
allow-query { any; };

============

I'm unsure of how to proceed. I don't have error logs; and I haven't had a chance to recreate the problem to gather them (it has to be done outside of business hours)

It appears to me that zone changes propagate, ns1 and ns2 records are correctly set up, and both ns1 and ns2 resolve lookups when queried directly. Why is it that I lose DNS functionality when ns1 goes down? Feedback appreciated,
 
Old 01-17-2014, 03:35 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
However, when I stop bind service on ns1, email stops functioning and domains stop resolving, both inside our network and out.

zone updates appear to work fine. I can still query ns2 when ns1 is down successfully.
Check /etc/resolv.conf of the failing hosts and make sure it contains the IP of the second nameserver.

Regards
 
Old 01-17-2014, 03:46 PM   #3
simon@tpmcomm.com
LQ Newbie
 
Registered: Aug 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
well eg. with gmail, nobody can send/recv email. The domain records have ns1 and ns2 set correctly. but when ns1 is down, no one can send email; even people outside. Those people should be able to use gmail, regardless of the status of our master dns server.
 
Old 01-18-2014, 02:44 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by simon@tpmcomm.com View Post
well eg. with gmail, nobody can send/recv email. The domain records have ns1 and ns2 set correctly. but when ns1 is down, no one can send email; even people outside. Those people should be able to use gmail, regardless of the status of our master dns server.
Regarding sending mail, check the clients dns settings to see if they are using ns2 along with ns1. For linux clients this is done in /etc/resolv.conf.
For receiving mail from outside, check you domain dns here,. Also make sure there is no firewall in ns2 blocking port 53 udp/tcp
 
1 members found this post helpful.
Old 01-20-2014, 12:11 PM   #5
simon@tpmcomm.com
LQ Newbie
 
Registered: Aug 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hello,

your link to intodns.com helped me to identify that the Glue records from the parent zone were different from the records in my name servers. I found that there was an option to set dns records in my domain registrar; so I updated the name server entries originally, but did not update the ip address they resolved to (according to domain registrar records). I've done this now, and although I haven't had a chance to test, it would explain my issues and I'm reasonably confident my issues are resolved. Additionally the SOA MNAME in my DNS server was not set to the name of the primary name server.

Thanks so much for your help,
 
  


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
Virtualmin as Slave DNS and External DNS Master pcspyoffice Linux - Server 11 06-09-2011 10:40 AM
how to configure master dns in windows2003 server and its slave dns in rhel5 suneellinux Linux - Newbie 1 04-11-2008 05:13 PM
Master/Slave server DNS emailssent Linux - Networking 2 10-04-2004 03:21 AM
DNS Slave not getting zones from master tysonh04 Fedora 1 06-06-2004 05:10 PM
dns master slave trust relationship how? ferret_dude Linux - Networking 1 05-24-2004 06:05 AM

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

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