Ask Your Question
0

resolv.conf - different domain resolution per server

asked 2013-11-13 05:50:44 -0600

mvrk gravatar image

Hi,

I've got this configuration on my resolv.conf

search domain1.local domain2.local nameserver 192.168.1.1 nameserver 192.168.2.1

192.168.1.1 only knows domain1.local and 192.168.2.1 only knows domain2.local

If both DNS servers are up, i can't resolve names of domain2.local i allways get this:

nslookup app1.domain2.local Server: 192.168.1.1 Address: 192.168.1.1#53

** server can't find app1.domain2.local: NXDOMAIN

And it never tries second server.

Anyway to make the resolution try next server when name not found?

edit retag flag offensive close merge delete

Comments

The problem is that i don't control the DNS servers.

mvrk gravatar imagemvrk ( 2013-11-13 08:11:10 -0600 )edit

Then set up your own instance of named on the local server and add forwarders to both other servers in the way I indicated. Then edit your resolv.conf to point at localhost#53.

cobra gravatar imagecobra ( 2013-11-13 08:23:09 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-11-13 07:47:20 -0600

cobra gravatar image

It only tries the second server if it can't get a response from the first. The first is responding with 'unknown'.

What you really need is for the DNS that you're contacting to be able to resolve the other domain. This should be as simple as declaring a 'forwarder' in the named.conf file for the server. This would look something like this:

forwarders { 192.168.2.1; }
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-11-13 05:50:44 -0600

Seen: 799 times

Last updated: Nov 13 '13