Dig
dig is a command line tool like nslookup used to check dns
Find Reverse-DNS/PTR using dig, nslookup, host
Requesting a zone trasnfer with dig
Here is the basic usage
1 |
dig DOMAIN_NAME |
dig have multiple sections, ANSWER SECTION is what you need to look for. After answer section, it shows some info about DNS server used to query.
+short
+short option allow you to just slow the answer.
1 2 3 4 |
root@ok-vm:~# dig +short serverok.in 104.28.18.89 104.28.19.89 root@ok-vm:~# |
To find Specific Record type
1 |
dig DOMAIN_NAME RECORD_TYPE |
Example
1 2 3 4 5 6 7 |
root@ok-vm:~# dig +short serverok.in mx 5 alt1.aspmx.l.google.com. 5 alt2.aspmx.l.google.com. 10 alt3.aspmx.l.google.com. 11 alt4.aspmx.l.google.com. 1 aspmx.l.google.com. root@ok-vm:~# |
Dig show detailed info
You can use +trace to get more detailed info on dig query.
1 |
dig +trace RECORD_TYPE DOMAIN_NAME |
Example
1 |
dig +trace ns boby.serverok.in |