Installing BIND and using dig utility on Windows Cloud Servers

2022-07-21 By Ryan 3293 Views windows dig dns
0 reviews

dig is a very useful command-line tool that can be used to diagnose DNS details of a website in BIND. This command helps in retrieving different DNS records of a website/IP address, such as A record, PTR record, authoritative nameservers, etc.


This guide outlines the basic steps to install the dig tool on Windows Cloud Servers.


  1. Go to the Bind official website and download the Bind version for Windows.

    https://www.isc.org/download/
    


    As per the latest update, the current stable version is used:

    bind1

  2. Extract the downloaded file and then click on the Bind9 installer, the screenshot shows the file you would require to execute.

    bind2

  3. Check the tool-only option and proceed with the installation of the setup file, also note the path of the installation.

    bind3

  4. Once the installation of Bind 9 is done, we add the path in Environment Variables of the server in order to make it available in the command prompt. Therefore, go to Windows Control Panel >> System >> Advanced System Settings >> Advanced Tab.

    bind4

  5. Under the Environment Variables, select the Path variable and then click Edit.

    bind5

  6. The environment variable box will be open and you would be able to see the list of already entered environment variables. Now we would require to add a new one therefore we select New and add the path over the last entry.

    bind6


    Now, we save it by clicking OK on all the open-screen pages. This will ensure the environment variable is added for bind.


    Finally, we test in command prompt by checking the bind version:

    bind12


The dig utility is often used for looking up the DNS records. Below are some examples illustrated for the dig used for different purposes.


  1. Application of DIG utility to find the DNS A record details.

    # dig <domain.tld>
    

    bind10


  1. Figuring out the MX record of a domain. E.g. Checking whether the mail server is pointing to the correct server, often this below command is used.

    # dig mx <domain.tld>
    

    bind11


Related Tutorials

What do you think about this article?

Rate this article
LayerStack Promotion
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.