LinuxQuestions.org
Help answer threads with 0 replies.
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 11-13-2013, 06:42 AM   #1
mvrk
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Question resolve.conf - different domain resolution per server


Hi,

I've got this configuration on my resolv.com

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?
 
Old 11-13-2013, 08:19 AM   #2
Zarniwoop79
Member
 
Registered: Jul 2009
Location: Göteborg, Sweden
Distribution: Ubuntu
Posts: 37

Rep: Reputation: 3
I usually don't have this problem butafter reading the man-page it seems that "ndots" might be the solution. I don't quite follow how to config it, but I found this in the manpage:

From the explanation of "search" on the resolv.conf-manpage:
Code:
Resolver queries having fewer than ndots dots (default is  1)  in  them
              will  be  attempted using each component of the search path in turn until a match is found.
Explanation of ndots in the resolv.conf manpage:

Code:
ndots:n
                     sets  a  threshold  for  the  number  of  dots  which must appear in a name given to res_query(3) (see
                     resolver(3)) before an initial absolute query will be made.  The default for n is 1, meaning  that  if
                     there  are any dots in a name, the name will be tried first as an absolute name before any search list
                     elements are appended to it.  The value for this option is silently capped to 15.
I don't fully follow, but based on this it seems that if you set "ndots" to a high number it should search all (both in your case) the domains before giving up.
 
  


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
Unable to resolve domain names on CentOS 6.2 server thecountryman Linux - Networking 1 06-13-2012 06:03 PM
my dns server is unable to resolve the domain annaabhi Linux - General 10 11-18-2010 01:34 AM
dns server not able to resolve local domain names mystika08 Linux - Networking 62 07-01-2009 06:23 AM
Bind server is unable to resolve specific domain bizzaro Linux - Server 4 05-04-2009 09:47 AM
dns server not able to resolve local domain names mystika08 Linux - Newbie 3 03-19-2009 08:57 AM

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

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