Opened 22 years ago

Closed 21 years ago

#481 closed defect (fixed)

/etc/hosts files: the hostname shouldn't be "www"

Reported by: stefankrah@… Owned by: lfs-book@…
Priority: low Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc:

Description

In the sample /etc/hosts files the following lines appear:

====================================================================== 127.0.0.1 www.mydomain.com <value of HOSTNAME> localhost

192.168.1.1 www.mydomain.org <value of HOSTNAME> =======================================================================

In both instances "www" should be replaced by "<value of HOSTNAME>":

======================================================================== 127.0.0.1 <value of HOSTNAME>.mydomain.com <value of HOSTNAME>

192.168.1.1 <value of HOSTNAME>.mydomain.org <value of HOSTNAME> ========================================================================

You could argue that nobody will really take over "www" from the sample config, but it has happened. I've seen it on lfs-support as well as in de.comm.software.newsserver.

Programs that will be confused by a line like ... =================================================== 192.168.1.1 www.mydomain.org osiris =================================================== ... include:

syslogd, leafnode (already during installation)

Stefan Krah

Change History (3)

comment:1 by gerard@…, 22 years ago

Priority: highnormal

I agree it'd be nicer to change it.

comment:2 by gerard@…, 22 years ago

Priority: normallow

comment:3 by jeremy@…, 21 years ago

Resolution: fixed
Status: newclosed

Added the appropriate changes to CVS

Note: See TracTickets for help on using tickets.