The dig
command in Linux is used to gather DNS information.
It stands for Domain Information Groper, and it collects data about Domain Name Servers.
The dig
command is helpful for troubleshooting DNS problems,
but is also used to display DNS information.
sudo apt-get install dnsutils
dig -v
dig [server] [name] [type]
server
The hostname or IP address the query is directed toname
The DNS (Domain Name Server) of the server to querytype
The type of DNS record to retrieve. By default (or if left blank), dig uses the A record type
dig internet.aut.ac.ir
dig -x 185.211.88.124