LinuxQuestions.org
Review your favorite Linux distribution.
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 12-14-2007, 09:56 AM   #1
GSMD
Member
 
Registered: Dec 2005
Distribution: Gentoo
Posts: 87

Rep: Reputation: 16
bund9 - overriding domain


Is there a way to configure bind so that it would "override" some domain w/o duplicating the entire zone?
E.g. got a domain somedomain.com with a number of subdomains i don't care about managed elsewhere.
Say, server.somedomain.com resolves into 195.12.08.11. Is there a way to make it resolve into 192.168.0.254 for the clients of the LAN? No fraud involved, just need to make sure services are available to LAN clients in case WAN interface (pptp link) goes down.
TIA.
 
Old 12-14-2007, 09:26 PM   #2
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Well, yeah, quite easy. Make it your secondary or tertiary DNS server via DHCP. When the WAN link goes out, your clients will try 195.12.8.11 first, timeout, and then try 192.168.0.254.

Easy as that. You can also run two "primary" servers easily enough; you just copy your zone files to each server and tell it that it's the master, authoratitive server for that zone.
 
Old 12-17-2007, 07:55 AM   #3
GSMD
Member
 
Registered: Dec 2005
Distribution: Gentoo
Posts: 87

Original Poster
Rep: Reputation: 16
Thanks for your reply.
1. It's the only dns server installed on the router. So no way.
2. I'd like to avoid duplicating zone info. Besides, this looks like a way too dirty hack .

Any other ideas?
 
Old 12-17-2007, 08:11 AM   #4
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
WAAAAIT. . .after re-reading your post, are you saying 195.12.8.11 is the server you're using for DNS resolution, or what?

And the two ideas I gave you are the simplest. You will HAVE to duplicate zone info to serve up a DNS zone. Plain and simple. Even if you run a secondary, you're duplicating zone info. You can, however, selectively duplicate zone info. Pick up a book on BIND, preferably this one: http://www.amazon.com/DNS-BIND-5th-C...7900489&sr=1-2

The reason you have to have two primary servers is that records die off after their TTL in a slave; so if, for example, your external DNS dies (the master), the clock starts ticking on your slave DNS. After the specified time, your DNS server reaps the dead records and you're screwed. No resolution. As long as you have authority over the zone, it's not a dirty hack; it's redundancy.
 
Old 12-18-2007, 10:11 AM   #5
GSMD
Member
 
Registered: Dec 2005
Distribution: Gentoo
Posts: 87

Original Poster
Rep: Reputation: 16
Nope, that's the domain name server.somedomain.com that resolves into 195.12.8.11. The domain name is managed by external NSs that don't relate to the LAN anyhow.
I'll pick up the book you've suggested, thanks.
 
  


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
overriding SIGINT xface66 Programming 3 04-02-2007 01:32 PM
Overriding dll's in Wine binarybob0001 Linux - Software 0 01-18-2006 02:20 AM
What is function overriding in C skie_knite007 Programming 2 03-11-2005 12:29 PM
What is function overriding in C skie_knite007 Programming 7 03-11-2005 11:35 AM
Problems overriding mandrake Kensai Slackware - Installation 6 03-04-2004 09:28 PM

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

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