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

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



On Mon, Jun 9, 2014 at 8:10 AM, Brian <ad44@cityscape.co.uk> wrote:
> On Mon 09 Jun 2014 at 07:58:41 -0400, Tom H wrote:
>> On Mon, Jun 9, 2014 at 4:55 AM, Brian <ad44@cityscape.co.uk> wrote:
>>> On Mon 09 Jun 2014 at 01:23:43 -0400, Teresa e Junior wrote:
>>>>
>>>> $ cat /etc/hostname
>>>> localhost
>>>
>>> I wouldn't use this in /etc/hostname. Contacting this machine from
>>> elsewhwere on the network could prove frustrating.
>>
>> The hostname in "/etc/hostname" isn't necessarily the hostname used to
>> access a box remotely; although it makes sense for them to be the
>> same.
>
> 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.
>
> (Neither may have anything to do with the OP's problem).

Good point!

If the OP's problem has to do with dns resolution and the OP's using
NM, then the lack of a "127.0.1.1" entry is probably a problem because
NM uses dnsmasq by default and "/etc/resolv.conf" is then set to
"127.0.1.1".

Otherwise, if the hostname is "localhost", a "127.0.1.1" entry isn't
needed. If the hostname is "tomh", such an entry is needed for "tomh"
to be resolvable locally.


Reply to: