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 - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-29-2008, 06:19 AM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Getting BIND to mimic dnsmasq


Hello,

Wonder if any DNS/BIND experts out there can help us with this one :-) In short we're trying to get BIND to mimin dnsmasq's behaviour on what to do with host lookups it cannot find internally, so that it instead of failing, checks with another (external) server if maybe that has a record of it.

We have a setup with two internal DNS servers at our primary location which handles the 192.168.1.x network.
Our public DNS servers are located in a colocation facility together with web and mail, and obviously run public addresses.
Then we have a couple of satellite locations that connect with DSL on public ISP address pools and use nsupdate to tell the public, colocated DNS servers about their IP address.

Both the internal and external address space has the exact same zone. This is where the problem lies.

Here's the problem. The external servers are the only ones knowing about the satellite locations updated with nsupdate (dynamic). Thus we cannot reach them internally (ie trying to ping dubai-gw.example.org gives "host unknown since the internal (private) bind-server has no recollection of dubai-gw, which has been updated with nsupdate on the external DNS server. Since they share namespace, and the internal server has to be primary for the internal hosts at head office, we cannot use a forwarder (a zone can only be either primary or forward, not both it appears).

So how do we make the internal hosts able to resolve the dynamically updated records on the external servers, without having to make the internal DNS say internal.example.org and thus split the namespace?

I wish there was a record I could use in the domain saying dubai-gw, instead of A or CNAME, I could say : Check with the DNS server at IP 10.11.12.13 ...

Any insight greatly appreciated - this one has kept me up all night thinking...

-y1
 
Old 03-29-2008, 07:45 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
If I understand your post correctly, you would add a delegation record (NS) to the zone file that needs to resolve the dynamically updated record at the colo DNS server.

Example:

Code:
dubai-gw    IN   NS    10.11.12.13
 
Old 03-29-2008, 08:03 AM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
You are a star! Thank you!

(it didn't work with the numeric address, but worked like a charm with when I added)

Code:
dubai-gw  IN NS  ns1
:wq
 
Old 03-29-2008, 08:35 AM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Ooops! Sorry about the record type mis-match in my example.

Glad that solution worked though.
 
Old 03-29-2008, 08:47 AM   #5
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
hehe - no worries. Thanks again for quick and to-the-point reply. It's funny how simple and obvious a solution can be once it's been pointed out. I've read the DNS & BIND book from O'Reilly twice, and while I knew all the different parts of the equation, I just never saw the connection to put it together that simply and elegantly.

Now we have the perfect DNS solution - tested, verified and rock solid. Thanks again.
 
  


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
dnsmasq cache dpballey Linux - Networking 4 04-07-2018 02:35 PM
Looking for distro to mimic financial terminal mister_math Linux - Distributions 5 04-01-2006 01:54 PM
Mimic a Fluke Netork device nebdy Linux - Networking 1 11-22-2005 03:35 AM
How to Get Open Office 2.0beta to Mimic MS Office 2003 Look? mac57 Linux - Software 2 03-08-2005 07:02 AM
Dnsmasq dunkyb Linux - Software 0 03-16-2003 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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