Back to the learning path

dig

dig = domain information groper Command details
Step 1/1: Query DNS records

dig NAME TYPE shows a whole DNS query: the ANSWER SECTION holds the answers, each "name TTL IN type value", and the end says which server answered and how fast. +short prints only the answers, for scripts. dig @SERVER NAME asks a given server.

$ dig +short MX example.lan
Fundamentalsdigdnsnetwork
Look up a DNS record with dig
Use dig to look up the text record (TXT) of web01.example.lan. The full output is fine, so is just the answer.

This exercise needs real Linux

The commands it uses (processes, networking and more) are not in the simulator. Switch to real Linux and the exercise runs in a real Linux system inside your browser.

hostNext lesson:nslookup