[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: MPD on localhost won't work if there's no Wifi!?



Brian wrote:
> Tom H wrote:
> > Brian wrote:
> > > Teresa e Junior wrote:
> > >> $ cat /etc/hostname
> > >> localhost
> ...
> True. What do think about the lack of '127.0.1.1 localhost' in 
> etc/hosts? Squeeze and Wheezy installs would both put this line in.

Process check!  I think you have mixed up the two cases.  Since a long
time now Debian installs a /etc/hosts file that will look like this:

  127.0.0.1       localhost
  127.0.1.1       foo.example.com        foo

That way 127.0.0.1 maps to localhost and localhost maps to 127.0.0.1
and this is always independent of whether networking is up or down.
That is just the default and of course may be locally modified.  I
think it is a good default.  I do have some special cases that need
this to be adjusted otherwise but good as a general purpose default.

Additionally the hostname always uses the loopback device.  Again this
allows applications to work using the hostname regardless of the state
of other network devices.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: