Web Hosting Talk







View Full Version : /etc/hosts


Loon
07-15-2004, 05:17 AM
morning :)

quick question, my /etc/hosts file should look like this right?

123.45.67.8 server.mydomain.com
127.0.0.1 localhost

and nothing else? i have some weird entries that i know shouldn't be there, just confirming exactly what should before i fix it up.

nexcess.net
07-15-2004, 05:27 AM
If the 123.45.67.8 represents the local machine then yes. Having more entries isn't "bad" per se but DNS should be used in lieu of 'extra' /etc/hosts entries when possible.

Chris

Loon
07-15-2004, 05:31 AM
Yeah that's what i thought.

I had some other really odd entries, although nothing i think that would override the correct two, but want to clean it up anyway.

thanks