Find the answer to your Linux question:
Results 1 to 2 of 2
I am trying to troubleshoot a DNS issue. I added a bogus nameserver as the primary in resolv.conf and a legitimate on as the secondary. I modified the timeout to ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    3

    DNS Settings

    I am trying to troubleshoot a DNS issue. I added a bogus nameserver as the primary in resolv.conf and a legitimate on as the secondary. I modified the timeout to 0 seconds so it finds the 2nd DNS server more quickly. However, when I try to ping another server, it still waits about 2 seconds then finally gets a response. I do the same test with a Windows server and the ping response is immediate. Is there another way to configure this so the client is using both DNS servers and doesn't wait to timeout? Below is my resolv.conf.

    options timeout:0
    search domain.com
    nameserver 10.1.1.1
    nameserver 10.150.1.216

    Thanks a lot,
    Scott

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    NOPE. DNS is designed that way. It will use the first server and then wait for either a response or a timeout. Which ever comes first it will use. A timeout will cause DNS to use the next listed sever and so on and so forth until it runs out of servers.

    Sounds like the windows box is using cached information thus it doen't have to wait for the DNS request to timeout. Redhat by default doesn't have caching turned on, you must turn it on if you want to use it.

    I don't know what DNS issue you are trying to resolve but adding a bogus server I don't think is the way to troubleshoot a problem.

    I normally use DIG to troubleshoot DNS issues

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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