About the Dig tool

Computers use the Domain Name System (or DNS for short) to convert human-readable domain names (e.g. www.soliddevtools.com) into an IPv4 address (e.g. or an IPv6 address (2a02:24e0:8:ab84::11).

DNS records also store information about the millions of domains and websites that are on the Internet - such as an approved list of servers that can send mail on your domain's behalf (known as SPF records.)

"Dig" is a tool on Unix and Linux servers that queries the Domain Name System for these records.

Use Cases

Use the Dig tool on Solid Tools for Developers to:

  • Find the IP address of a website
  • Check if a DNS record exists
  • Check if a change made in DNS has been published


Enter a DNS record you wish to query in the "Domain name/record" field - e.g. www.google.com.

If you wish to query a specific DNS server, enter it's hostname or IP address in the "DNS server" field. If you don't know what this is, leave it as localhost.

Select the type of record you would like to query. For example: to find the IP address of a domain name, use the query type A (IP address).

By default, Solid Tools for Developers will use its own DNS server to return your results. This may include cached data if the record was recently queried. To force the use of "live" data, tick the "Trace" option.


The complete output from the "Dig" tool will be displayed.

The "flags" line at the top will include a line like QUERY: 1, ANSWER: 1, AUTHORITY: 4. The figure next to ANSWER will tell you how many results were found.

The results themselves will be displayed under the section labelled ;; ANSWER SECTION.

The following example shows a successful query to find the IPv4 address of www.google.com:

; <<>> DiG 9.10.3-P4-Ubuntu <<>> @localhost  www.google.com A
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25982
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 5

; EDNS: version: 0, flags:; udp: 4096
;www.google.com.			IN	A

www.google.com.		300	IN	A

google.com.		172800	IN	NS	ns2.google.com.
google.com.		172800	IN	NS	ns3.google.com.
google.com.		172800	IN	NS	ns1.google.com.
google.com.		172800	IN	NS	ns4.google.com.

ns1.google.com.		172800	IN	A
ns2.google.com.		172800	IN	A
ns3.google.com.		172800	IN	A
ns4.google.com.		172800	IN	A

;; Query time: 109 msec
;; SERVER: ::1#53(::1)
;; WHEN: Wed Dec 06 11:48:51 GMT 2017
;; MSG SIZE  rcvd: 195

Run the Dig tool