From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

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

Use dig to resolve DNS records

Use dig to resolve DNS records

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Use dig to resolve DNS records

- [Instructor] We have more than one command to query DNS servers, including the legacy nslookup. However, dig does such a good job, I'm going to focus on it. Let's type in dig redhat.com and look at the results. In a terminal, type dig redhat.com and hit Enter. This shows information on redhat.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 a question that's 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…

Contents