Skip to main content
DevOpsLabTH.dev

Local name resolution with /etc/hosts and /etc/resolv.conf

Before DNS gets called, Linux checks /etc/hosts. The list of DNS servers to use lives in /etc/resolv.conf. Read both and add a local override.

Sign in to start the lab