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.
Source: [Dev.to](https://dev.to/locahl_9bd77121e3d366f72f/how-to-edit-etchosts-without-breaking-your-local-setup-2hf7)