Most people open /etc/hosts, change one line, refresh the browser, and hope.
That works until it does not. Then you spend twenty minutes on Permission denied, a forgotten DNS flush, or a commented line from last week that is still active.
This is a simple workflow that keeps hosts edits boring.
What the hosts file does
When your machine resolves a name like myapp.test, it can use a local override before public DNS.






