From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use dig

Use dig

- We have more than one command and query DNS servers, including the legacy NS Lookup. However, Dig does such a good job, I'm gonna focus on it. Let's type in "dig space red hat dot com" and look at the results. In a terminal type "dig space red hat dot com" and hit enter. This shows information on red hat dot com. The dig command shows the header, which includes the dig command version number and the global options used by Dig. It also shows a question section which is the question it sent to the DNS server. Since the default question is an address query, it shows that we made an address query. Then comes the answer section which is the response from the DNS query. In our case it shows the address record. Next is the authority section, which displays the DNS name server that has the authority to respond to this query. Lastly is the additional section which displays the IP address of the name server listed in the authority section, followed by stats about the query including the…

Contents