Timeline for Format of /etc/hosts on Linux (different from Windows?)
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 16, 2011 at 1:53 | vote | accept | Thomas | ||
| May 15, 2011 at 20:01 | comment | added | Caleb | @Thomas: Your example is just as it should be. Go with that, and if you need to add more aliases for testing (for example with name virtual hosts in apache) you can keep appending them to the line. | |
| May 15, 2011 at 14:27 | comment | added | Thomas | 127.0.0.1 localhost.localdomain localhost etest | |
| May 15, 2011 at 14:27 | comment | added | Thomas | Does this mean that having a line like this instead of the one I posted with my question would be wiser? I have included a space separated alias (etest my hostname) leaving the localhost.localdomain localhost intact. If not, please post an example of what you suggest as the ideal entry to include my machine hostname and have localhost entries in the hosts file. | |
| May 12, 2011 at 9:00 | comment | added | XQYZ | Also "::1" is the ipv6 equivalent of 127.0.0.1 (which is for ipv4). | |
| May 12, 2011 at 8:49 | history | answered | Caleb | CC BY-SA 3.0 |