8 Linux Nslookup Commands to Troubleshoot DNS (Domain Name Server)

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

11 Responses

  1. Vinod B says:


    I have a query regarding DNS resolution in Linux. I have entered the DNS servers in the resolve.conf. But the client is complaining that there is intermittent resolution problems. But when I am checking with nslookup and dig not finding any issues. Is there any way i can check the historical DNS resolution errors as to find when these kind issues were happening.


    • Ravi Saive says:


      May be the issue with their network setup, try to use same dig and nslookup commands from other network sources and see any issues..

      • Vinod B says:

        Hi Ravi,

        Thanks for your update. Apart from this, is there any logs which I can investigate to find when the issue is happening. Since it is inttermittent issue and currentky the resolution is happening.


        • Ravi Saive says:


          Unfortunately, there isn’t any logs for dig and nslookup requests, you need to find out yourself the issue..

  2. Santosh Lohar says:

    nice Article Ravi

  3. shree says:

    The commands used to troubleshoot DNS activity are
    b) IPCONFIG /registerdns
    c) IPCONFIG /displaydns
    d) All the Option
    can i get the ans pls

  4. Antonio Guimaraes says:

    Sr Ravi
    Im new in Oracle 11g… a install Centos 6.4 linux in VM VirtualBox 4.2.12 and a could not do de YUM UPDATE… error Canot find a Valid Baseurl for repo base. And also i need know
    what have to do next for istall Oracle 11g ..please help me
    I want learn that….please.
    Thankyou for your time and atencion.

    • Ravi Saive says:

      Is your /etc/resolv.conf file has proper dns entries? If no, add your network DNS entries to this file and try again.

  5. sushant says:

    excellent !but i am not getting reply usally if i raise any query ?? :(

  6. MAC says:

    I remember hearing nslookup was going to be depredicated is this still the case. I know dig was pushed before, can anyone give an update.


Leave a Reply to Ravi Saive Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.