D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] /etc/hosts

 

On 06/09/12 12:40, Dan Dart wrote:
You can put as many duplicate IP entries and as many hostnames to an
entry that you like.

e.g.:

127.0.0.1 mymachine localhost foo bar
127.0.0.1 somesite
10.0.0.1 myevilrouter

so then you can refer to any of these using a program that accepts
hostnames and they'll be resolved for you.

Cheers,
Dan

I'd also add a localhost.com (or.co.uk) to 127.0.0.1 as this makes setting up mail much easier later - things like drupal haven’t the wit to allow mail@localhost when configuring and sending yourself mail when errors happen is a good thing to do.
Tom te tom te tom

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq