LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-02-2012, 01:11 PM   #1
Rike255
LQ Newbie
 
Registered: Apr 2011
Distribution: Red Hat
Posts: 17

Rep: Reputation: 0
Configuring seperate nameservers with different entries in the same zone


Here's my situation:

Currently my linux clients use two Windows DNS servers to resolve internal/external addresses. My linux clients are in the abc.xyz.ca zone and addresses from this zone are resolved from the Windows DNS servers. I have no control over the entries in these nameservers.

For this reason I want to configure a separate Linux NS(using BIND) that will only contain a few entries in that same abc.xyz.ca zone...this is in the hope that I can configure temporary entries that my linux environment can use (without affecting the actual windows NS).

Problem seems to be that these entries go in the same zone. So in a client resolv.conf if I put the windows NS first and try to lookup an entry that's only in my linux NS the windows will say it doesn't exist and the client will stop there. Same thing if the linux NS goes first.

Does anyone know of a way to either configure the linux clients to continue down the NS list in resolv.conf (if an entry isn't found), or maybe a way to configure the nameservers in a way that this will work?

Thanks,
Ryan
 
Old 02-02-2012, 02:08 PM   #2
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
I believe this is possible, we have a split view bind dns with internal, customer and external views all on the same server(s).

In the VMware environment the Windows R2 server has to run DNS for VMware and it is a non-accessible network from the outside world.

Basically I use the Windows DNS for the VMware ESX servers then the internal ip address of the bind dns servers for resolution from our internal networks.

So I think I have what you want in a reverse role.
 
Old 02-02-2012, 03:13 PM   #3
Rike255
LQ Newbie
 
Registered: Apr 2011
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rhbegin View Post
I believe this is possible, we have a split view bind dns with internal, customer and external views all on the same server(s).

In the VMware environment the Windows R2 server has to run DNS for VMware and it is a non-accessible network from the outside world.

Basically I use the Windows DNS for the VMware ESX servers then the internal ip address of the bind dns servers for resolution from our internal networks.

So I think I have what you want in a reverse role.
My clients will each be pointing to both servers (with different entries in them) though which is where the issue lies I think.

So if we say ServerA is one DNS, ServerB is the other and they're configured something like this:

ServerA
- Contains EntryA.abc.xyz.ca XX.XX.XX.XX

ServerB
- Contains EntryB.abc.xyz.ca XX.XX.XX.XX

ClientA has ServerA and ServerB listed in it's resolv.conf (ServerA is listed first).

If I do a lookup from ClientA for EntryA it will work, but if I do a lookup for EntryB it will fail because ServerA says "that client doesn't exist". If I were to put ServerB first in resolv.conf then the opposite would happen (EntryB could be looked up, but not EntryA)
I'd like my clientA to check both DNS servers before returning failure (or any other method to achieve the same thing).
 
Old 02-02-2012, 04:08 PM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
You can use "dnsmasq" and point clients DNS to it only. You add entries to it /etc/hosts file and it will respond if find one, if not then it ask servers from special resolve.conf file (with orginal DNS entries) and forward answer to client. It has also cache capabilities. The disadvantage is that it need to be available all time or clients will not find any host and it is not a full DNS server, only forwarder. Probably on bind you can do the same, but I don't known it.

Last edited by eSelix; 02-02-2012 at 04:11 PM.
 
Old 02-02-2012, 05:01 PM   #5
Rike255
LQ Newbie
 
Registered: Apr 2011
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by eSelix View Post
You can use "dnsmasq" and point clients DNS to it only. You add entries to it /etc/hosts file and it will respond if find one, if not then it ask servers from special resolve.conf file (with orginal DNS entries) and forward answer to client. It has also cache capabilities. The disadvantage is that it need to be available all time or clients will not find any host and it is not a full DNS server, only forwarder. Probably on bind you can do the same, but I don't known it.
I'll definitely take a look at this, but likely it won't fit for me because the Windows DNS is HA and this solution likely wouldn't be.
Ideally my clients would check the Windows nameservers first for everything but if it's not possible it's not possible I guess.

Thanks!
 
Old 02-02-2012, 08:32 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Normally the DNS client should check all DNS servers listed in resolv.conf, that's why multiple entries are allowed.
Are you saying yours don't? that would be very odd.

One soln would be to setup your Linux NS, pt your clients there and set it to fwd queries it can't answer to the MS NS servers.
All std BIND stuff.
See eg chap 16 http://www.linuxtopia.org/online_boo...ion/index.html
 
Old 02-03-2012, 06:49 AM   #7
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
This first server ServerA responded with negative answer. Client should ask only one server, and try next if ealier didn't respond, not when found that domain does not exists. What client will do if it get for example three diffrent response from diffrent servers? It would be also wasting resources.

Last edited by eSelix; 02-03-2012 at 06:50 AM.
 
  


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
Missing nameservers reported by your nameservers sushantchawla2005 Linux - Server 6 02-02-2011 07:50 AM
Configuring a DNS Server:Zone Naming SBN Linux - Server 1 02-11-2008 04:20 AM
Configuring Shorewall error: net Zone: eth0:0.0.0.0/0 almost000 Linux - Security 1 06-12-2007 01:23 PM
DDNS client: Multiple zone entries nsvora Linux - Networking 1 10-26-2006 07:21 AM
double entries at reverse zone by BIND 9 ccc Linux - Networking 0 01-08-2004 12:49 PM

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

All times are GMT -5. The time now is 12:28 AM.

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