[NTLUG:Discuss] format of /etc/hosts file
Chris Cox
cjcox at acm.org
Mon Dec 19 13:49:54 CST 2005
m m wrote:
> Hi all:
>
> Waht is the right format of /ect/hosts?
You're not supposed to depend on it, but
I've run into software that was particular
about localhost being the first entry
for 127.0.0.1.
Aliases for an IP are supposed to be on the same
line.
192.168.1.1 host1 www aaa1.com bbb1.com ccc1.com
> (1)
>
> 127.0.0.1 localhost localhost.localdomain
> or
> 127.0.0.1 localhost.localdomain localhost
>
>
> (2)
> 192.168.1.1 host1 www aaa1.com bbb1.com ccc1.com
> 192.168.1.2 host2 www aaa2.com bbb2.com ccc2.com
> or
> 192.168.1.1 host1
> 192.168.1.1 www.aaa1.com aaa1.com
> 192.168.1.1 www.bbb1.com bbb1.com
> 192.168.1.1 www.ccc1.com ccc1.com
> 192.168.1.1 host2
> 192.168.1.1 www.aaa2.com aaa2.com
> 192.168.1.1 www.bbb2.com bbb2.com
> 192.168.1.1 www.ccc2.com ccc2.com
> or
> 192.168.1.1 host1
> 192.168.1.1 aaa1.com www.aaa1.com
> 192.168.1.1 bbb1.com www.bbb1.com
> 192.168.1.1 ccc1.com www.ccc1.com
> 192.168.1.1 host2
> 192.168.1.1 aaa2.com www.aaa2.com
> 192.168.1.1 bbb2.com www.bbb2.com
> 192.168.1.1 ccc2.com www.ccc2.com
>
>
> basically, I am confused how /etc/hosts be read and applied by the
> application, expecially by apache, sanemail, qmail. (maybe none of then
> use it?!, the order was set to host, dns)
>
> thanks.
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar � get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
>
More information about the Discuss
mailing list