Show how hostname resolution is ordered.
Section: Name Resolution and Proxy Problems
Inspect NSS host order
bash
bash
grep '^hosts:' /etc/nsswitch.confExplanation
Show how hostname resolution is ordered.
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 Name Resolution and Proxy Problems
Bypass proxy for one request
Temporarily skip configured proxies for a single cURL request.
Show link status with networkctl
Inspect status for a systemd-networkd link.