Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 811 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 811 Bytes

dig

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.

Install

sudo apt-get install dnsutils

test

dig -v

Syntax

dig [server] [name] [type]
  • server The hostname or IP address the query is directed to
  • name The DNS (Domain Name Server) of the server to query
  • type The type of DNS record to retrieve. By default (or if left blank), dig uses the A record type

Example

dig internet.aut.ac.ir
dig -x 185.211.88.124

Resources