cat /etc/resolv.conf

Category: Self-Hosting

cat /etc/resolv.conf

View the DNS resolver configuration — shows which DNS servers this machine queries

Shows which DNS servers this machine is configured to use. On modern Ubuntu this is usually managed by systemd-resolved rather than edited directly.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.