nslookup and res_query have a timeouts, dig works

Discussion in 'Linux Networking' started by Burkhard Schultheis, Jul 31, 2012.

  1. On a Linux machine I get timeouts with res_query and nslookup, but dig
    works. How is it possible? I thought they all must use port 53 to query
    a name-server, but there mus be a difference!

    What is that difference between dig and nslookup?

    Thanks in advance!

    Burkhard Schultheis, Jul 31, 2012
    1. Advertisements

  2. Burkhard Schultheis

    Jorgen Grahn Guest

    If you have root access, take a look with tcpdump and it will
    be quite clear. Or use strace.

    One possibility is that res_query and nslookup use a misconfigured
    resolver and/or a misconfigured local nameserver, while you instruct
    dig to talk to a working remote server.

    Jorgen Grahn, Jul 31, 2012
    1. Advertisements

  3. Am 31.07.2012 15:43, schrieb Jorgen Grahn:
    I used dig an nslookup a little bit different, because I didn't know how
    to tell dig to use a different name server. So dig used our internal
    server whereas nslookup used a server from the internet. ;-)

    Thanks for your reply!

    Burkhard Schultheis, Jul 31, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.