Last updated: 27 July 2026
Sometimes you might want to force your local machine to point a domain to another IP address without editing its public DNS entries.
You can do this by editing a file that is local to your PC, the "hosts" file - this is checked before any DNS lookups are performed.
- Click the Windows button.
- Type "Notepad" in the search field.
- When it appears inthe search results, right-click Notepad and choose to "Run as administrator"
- When in Notepad, now open the following file:"C:\Windows\System32\drivers\etc\hosts"
- Add/Remove/Edit lines as needed and then File > Save
The format required for entries in to this file are like
[IP] domain.name
So to point your website to one of our shared hosting servers, you would add a line like this:
46.20.227.2 your-web-site.com