Ask Your Question

resolv.conf - different domain resolution per server

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

mvrk gravatar image


I've got this configuration on my resolv.conf

search domain1.local domain2.local nameserver nameserver only knows domain1.local and 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: Address:

** 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


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

mvrk gravatar imagemvrk ( 2013-11-13 08:11:10 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

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

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 {; }
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


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

Seen: 805 times

Last updated: Nov 13 '13