


In our simple example, it was just the default +cmd (command) option. This line shows the options that have been applied to all of the domain queries. Global options: As we’ll see, you can use dig to query multiple domains simultaneously.First line: The version of dig and the domain that was queried.flags: qr rd ra QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1 >HEADER<<- opcode: QUERY, status: NOERROR, id: 12017 These are called DNS precursor servers.įirst, let’s take a look at we have in the Header: > DiG 9.11.3-1ubuntu1.11-Ubuntu > So, your router queries either your Internet Service Provider’s (ISP) DNS server, or any other you’ve configured your system to use. When you use a domain name with any internet-connected program, your local router can’t resolve it (unless it’s cached from a previous request). This is where the Domain Name System comes in. When you type a domain name into an application, like a web browser or SSH client, something has to translate from the domain name to the actual IP address. The internet uses internet protocol (IP) addresses to identify “locations” around the web, but people use domain names. However, you can use it to poke around and learn more about DNS, which is one of the central systems that keep the internet routing traffic. It was intended to be a tool for diagnosing DNS issues.

dig is an acronym for Domain Information Groper. With dig, you can query DNS servers for information regarding various DNS records, including host addresses, mail exchanges, name servers, and related information. People use the Linux dig command to query Domain Name System (DNS) servers. We’ll show you how! How the dig Command Works You can also find the domain an IP address leads back to. The Linux dig command allows you to query DNS servers and perform DNS lookups.
