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.
Adding users from command line is much easier than going through the UI. It saves…
Do you want to delete a directory from Windows command prompt(CMD)? This post explains how…
We can kill a process from GUI using Task manager. If you want to do…
Chrome is definitely the stable browser compared to other ones and it has been my…
Windows has multiple command line utilities that can help find the version of the Windows…
There are multiple ways to check whether a Windows computer is running 32-bit OS or…
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)