This article explains how to safely locate, open, and modify the hosts file across major operating systems to map domains to IPs.
This guide will walk you through the steps to add a static entry to your hosts file on Windows, macOS, and Linux. The hosts file is a crucial system file that allows you to map domain names to specific IP addresses, overriding the default DNS resolution.
Just pop in a new line using this simple format:
<IP Address> <Domain Name>
For example, if you wanted internalserver.local to point to 192.168.1.10,
you'd just type: 192.168.1.10 internalserver.local