Just type nslookup in you command prompt and you will get your default DNS server and its IP address:
Nslookup for any web servers IP address
For example, in the above query, the response is coming from my default DNS server which would come as non-authoritative because it is not listed in the list of nameservers for microsoft.com.
Different types of Nslookup commands
Nslookup example with a parameter:
In the above query, the command follows this way:
- nslookup <Enter>
- > set q=a <Enter>
- > fossbytes.com <Enter>
Now
if you compare the above image to its previous image, you can see that I
have continued setting the different type of DNS queries on the same
screen in continuation.
In the following
image, I am continuing my different types of queries in the same screen
and this time I am querying for Well-Known Service (WKS) for our
website fossBytes.com.
This query is showing me some more data about fossBytes like primary server name, refresh time, default TTL, mail address etc.
You can also perform many other queries the same way for which I am providing a table below:
Set queries | Description |
set q=a | To know the IP address |
set q=any | To know all types of data |
set q=CNAME | To know the Canonical name |
set q=MB | To know the Mailbox domain name |
set q=MX | To know about the mail exchange server |
set q=SOA | To know about the Start-Of-Authority of a DNS Zone |
set q=WKS | To know about the Well Known service |
No comments:
Post a Comment