Show the resolver configuration file.

Section: DNS Resolution

Inspect resolver config

bash
bash
cat /etc/resolv.conf
Explanation

Show the resolver configuration file.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing DNS Resolution
Query A record
Fetch an A record in short output format.
OpenIn sheetbashsame section
Query MX record
Fetch MX records in short format.
OpenIn sheetbashsame section
Trace DNS delegation
Follow delegation from root to authoritative answers.
OpenIn sheetbashsame section
Query a specific resolver
Send a DNS query to a chosen DNS server.
OpenIn sheetbashsame section
Resolve with host
Look up DNS records with the host command.
OpenIn sheetbashsame section
Resolve with nslookup
Interactive or one-shot DNS lookup.
OpenIn sheetbashsame section