äèï

Questions and answers about Hosting

A hosts-file entry lets your own computer resolve a domain to a chosen IP address. Use it to test a website on a new server before changing public DNS.

Each entry starts with the server IP address, followed by the hostname. Lines beginning with # are comments. Replace the example address below with the IP address of your EDIS web host.

192.0.2.10 example.org
192.0.2.10 www.example.org

Windows

  1. Open Notepad as an administrator.
  2. Choose File → Open and open C:\Windows\System32\drivers\etc\hosts. Select “All files” if the file is not shown.
  3. Add the entries and save the file as plain text.

macOS and Linux

  1. Open a terminal.
  2. Run sudo nano /etc/hosts and enter your administrator password when prompted.
  3. Add the entries. Save with Ctrl+O, confirm the filename and exit with Ctrl+X.

Use a plain-text editor. DNS or browser caches may need to be cleared before you see the change. Remove the temporary entries when testing is complete.

More questions about Hosting