Multihomed DNS Clients?


 
Thread Tools Search this Thread
Special Forums IP Networking Multihomed DNS Clients?
# 1  
Old 04-09-2007
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  
Old 04-09-2007
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  
Old 04-09-2007
This is a better topic than many people pick. We get a lot of "help me" or "problem" topics... Smilie

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  
Old 04-11-2007
Continued...

Thanks for the replies. Smilie

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  
Old 04-12-2007
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 10:02 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

DNS client added to DNS server but not working

Hi, We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies

2. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

3. Red Hat

DNS A-Record point to another DNS

Hi, I have a question on how to point the DNS server-1's A-record to second DNS server, which is DNS server-2. So, the computer can access other domain which only listed in the DNS server-2. The scenario is as follow: http://img689.imageshack.us/img689/6333/12234.png How to configure this... (4 Replies)
Discussion started by: Paris Heng
4 Replies

4. IP Networking

HOWTO: Linux multihomed dns client - reverse lookup

The following thread is closed: 133552-howto-linux-multihomed-dns-client (Sorry I am not allowed to post URLs) Therefore I write this append in an own thread. The HOWTO in the referenced thread helped me a lot and I only want to append how to make reverse lookup working for a local zone: ... (0 Replies)
Discussion started by: scheruga
0 Replies

5. UNIX for Advanced & Expert Users

Multihomed server, eth1 not working

Hey everyone. We're in the process of deploying a number of servers. They're HP DL360 G6's. OS is RHEL 5.4 They've got two on board NIC's, as well as an additional dual port network card, giving us a total of 4 NIC's. Eth0 and Eth2 are bonded together using the bonding module, and the resulting... (2 Replies)
Discussion started by: msarro
2 Replies

6. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

7. IP Networking

HOWTO: Linux multihomed dns client

The Linux resolver queries all nameservers in the order they are listed in /etc/resolver.conf. If a nameserver times out, it advances on to the following nameserver. But, if a nameserver returns "not found" (NXDOMAIN) it stops. This behaviour is problematic when you need to resolve names from... (0 Replies)
Discussion started by: colemar
0 Replies

8. IP Networking

Multihomed can not ping gateway

Hello this is my first post at this forum. Apologize for my lack of network understanding but Im posting to learn. I have a problem reaching default gateway 10.18.110.1 If I use my laptop I can ping 10.18.110.1 but with our red hat multihomed server the gateway does not respond to ping. cat... (11 Replies)
Discussion started by: vettec3
11 Replies

9. Solaris

Solaris DNS Client For Microsoft DNS Server

hey guys, how to add soalris box as a microsoft DNS Client ? and how to register in the microsoft DNS ?? i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies

10. Programming

Multihomed Client

Hi, I am writing a socket program at the moment that uses both of the clients network interfaces. The program tries to create two socket connections to the server over a LAN connection and a GPRS connection. I have tried to update the routing table using the route command but that proved... (0 Replies)
Discussion started by: mhynes
0 Replies
Login or Register to Ask a Question