Categories: Network

How to find DNS address of website

Do you need to find DNS address of a website from command prompt? Learn how to use Windows command nslookup to find DNS addresses.

Run below command to find DNS address.

nslookup  DomainName

An example command below that finds DNS address for this website.

C:\>nslookup www.windows-commandline.com
Server:  UnKnown
Address:  192.168.0.1

Non-authoritative answer:
Name:    www.windows-commandline.com
Addresses: 2400:cb00:2048:1::6819:550c
          2400:cb00:2048:1::6819:540c
          104.25.84.12
          104.25.85.12
C:\>

As you can see the command displays both IPv4 and IPv6 DNS addresses.

Also Read: How to flush DNS cache from Windows command prompt.

Srinivas

View Comments

  • You can find the email server in a similar way:
    nslookup
    > set q=mx
    > DomainName
    Server: one.one.one.one
    Address: 1.1.1.1

    windows-commandline.com
    primary name server = olga.ns.cloudflare.com
    responsible mail addr = dns.cloudflare.com
    serial = 2029260140
    refresh = 10000 (2 hours 46 mins 40 secs)
    retry = 2400 (40 mins)
    expire = 604800 (7 days)
    default TTL = 3600 (1 hour)
    >

  • set q=mx
    > DomainName
    Server: one.one.one.one
    Address: 1.1.1.1

    windows-commandline.com
    primary name server = olga.ns.cloudflare.com
    responsible mail addr = dns.cloudflare.com
    serial = 2029260140
    refresh = 10000 (2 hours 46 mins 40 secs)
    retry = 2400 (40 mins)
    expire = 604800 (7 days)
    default TTL = 3600 (1 hour)

Share
Published by
Srinivas

Recent Posts

Add new user account from command line (CMD)

Adding users from command line is much easier than going through the UI. It saves…

4 years ago

Delete directory from command line [Rmdir]

Do you want to delete a directory from Windows command prompt(CMD)? This post explains how…

4 years ago

TaskKill: Kill process from command line (CMD)

We can kill a process from GUI using Task manager. If you want to do…

4 years ago

Kill Chrome from command line

Chrome is definitely the stable browser compared to other ones and it has been my…

4 years ago

Find windows OS version from command line

Windows has multiple command line utilities that can help find the version of the Windows…

4 years ago

How to check if Windows 32 or 64 bit?

There are multiple ways to check whether a Windows computer is running 32-bit OS or…

7 years ago