Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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?

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    4,056
    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:

    Code:
    forwarders { 192.168.2.1; }
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •