The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
NTP server with aix & wintel clients chongkls77 AIX 0 09-05-2007 09:53 PM
BOOTP on HP Thin clients chuk_uka Linux 2 01-30-2006 04:21 AM
Multihomed Client mhynes High Level Programming 0 08-30-2005 12:29 PM
Please help.Thin clients connecting to SCO. Chaitu.a SCO 1 07-18-2005 07:59 AM
FTP from AIX to 20 Windows clients sharuvman Shell Programming and Scripting 2 03-28-2003 06:40 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-09-2007
deckard's Avatar
deckard deckard is offline
Registered User
  
 

Join Date: Jul 2002
Location: Ohio
Posts: 135
Multihomed DNS Clients?

I'm not sure it that's the right term for what I'm asking about, but it's the best I could come up with. Here is my situation...

I'm setting up a network using OpenVPN. The clients I'm setting up will need to be able to access their own DNS servers (to resolve internal names at their location) as well as my DNS server for my internal hosts. In the past I was lead to believe that this is possible by doing something like:

nameserver (ip of site1-domain.com's DNS server)
nameserver (ip of my-domain.com's DNS server)
nameserver (ip of the Client ISP's DNS server)

search site1-domain.com
search my-domain.com
search client-isp.com

And so on. With the idea that if a searched host only existed in site1-domain.com, then the name resolution would stop there and the client would then know the correct IP. If the searched host only existed in my-domain.com, then the search would fail when the site1-domain.com DNS was queried and the search would continue onto my DNS server where it would be resolved properly. If neither of the search domains + DNS servers gave the appropriate answer, then the last place to go would be the ISP's DNS server. (In case the client's primary DNS server was failing and they wanted to redirect all queries to the outside world so that at least internet access would work)

However, when I set up this configuration, I ran into multiple issues which lead me to abandon to the configuration. So... was I doing something wrong, or is this simply not possible to do cleanly?
  #2 (permalink)  
Old 04-09-2007
stdout stdout is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 103
hello,

i think -- the query resolution determine by the nameserver order.
from a fresh (has not been cached yet) its impossible to be a directed query to a specific NS.
example :
the /etc/resolv.conf contains this :
nameserver ns01.abc.com
nameserver ns02.def.com

client1.abc.com will automatically query the first nameserver which is ns01.abc.com -- by that if it doesnt find the answer -- go to ns02.def.com, bang -- it has the answer -- cached - since then no longer need NS.

but -- BTW, i'm wondering what kind of problem do you have?

cheers.
  #3 (permalink)  
Old 04-09-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
This is a better topic than many people pick. We get a lot of "help me" or "problem" topics...

It only goes to the next nameserver if the first does not respond...they must be co-equals. With nsswitch.conf you can check a local host file first. So I have done this...

1 local host file

2 private dns server

3 private dns server uses normal dns protocol for domains for which it is not authorative.
  #4 (permalink)  
Old 04-11-2007
deckard's Avatar
deckard deckard is offline
Registered User
  
 

Join Date: Jul 2002
Location: Ohio
Posts: 135
Continued...

Thanks for the replies.

I have a few different situations in which I'm trying to set this up, but I'll give a more concrete example: my parent's network connecting to my network via OpenVPN.

I have a network in 192.168.20.0/24 and my parents are in 192.168.2.0/24 and OpenVPN connects both sites over DSL lines. I run my own DNS server for internal name resolution with my internal domain being myplace.priv. My parents have a DNS server and their internal domain is parents.priv. I'd like for them to be able to resolve intranet.myplace.priv as well as parentnet.parents.priv using just the hostname. For example, if they type: http://intranet into Firefox, they should ideally get to intranet.myplace.priv as long as the OpenVPN connection is up. In the event that it's down, I don't mind if they can't get there. But I'd still like them to be able to access their own site at http://parentnet.

The problem I've run into in the past is that they've needed to use the FQDN to access resources on my network if I set their 'search' option as 'search parentnet.parents.priv' or as the case may be, have DHCP push that out. And this is what I'm asking for... a way for the query to fail within one domain and pass onto the next before heading out the door to the ISP DNS server (where it should fail as well since this is all private internal stuff). Ideally, if they ask for http://intranet and that host or alias only exists in my domain, then it should fail for their domain. So maybe the search order matter first? I'm still not sure if I'm explaining this clearly. I just really want to avoid having to pull them into my domain. But maybe that's the way to go with them as a secondary to my master...
  #5 (permalink)  
Old 04-12-2007
stdout stdout is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 103
hello,

OK,

1. create a secondary of myplace.priv at parent.priv's NS. (and vice versa if you like).
2. or a stub pointing authoritative NS for myplace.priv at parent.priv's NS.
2. this config should make the clients not querying ISP's NS (except for the internet) -- unless you created mistakes.

cheers.

Last edited by stdout; 04-12-2007 at 09:02 PM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0