Date: Mon, 17 Jun 2019 13:15:22 -0700 From: "Ronald F. Guilmette" <rfg@tristatelogic.com> Cc: freebsd-net <freebsd-net@freebsd.org> Subject: Re: localhost woes -- help requested Message-ID: <4468.1560802522@segfault.tristatelogic.com> In-Reply-To: <CA%2BtpaK1NKqctQqZeRg%2BemM8gVKWuJeveCVVx-FHsVbrkYD9Y2Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <CA+tpaK1NKqctQqZeRg+emM8gVKWuJeveCVVx-FHsVbrkYD9Y2Q@mail.gmail= .com>, = Adam <amvandemore@gmail.com> wrote: >On Sat, Jun 15, 2019 at 12:54 AM Ronald F. Guilmette <rfg@tristatelogic.c= om> >wrote: >> ... except for the browsers, and also one other thing (nmh outbound >> email handling). Now, both Firefox and Opera crash and burn, right >> out of the gate, when started from the command line. In both cases >> thet do so both with entirely cryptic failure messages. >> >> But here's the kicker... I futzed around with this awhile and found >> out that if I just change the default value of the DISPLAY environment >> variable from "localhost:0.0" to ":0.0" then both browsers *do* then >> start up successfully from the command line. >> >> So, um, what the bleep did I do wrong? >> >> Here's the output of the command "getent hosts localhost": >> >> ::1 localhost >> 127.0.0.1 localhost localhost.tristatelogic.com >> >> >> Any hints for how I can debug this mess would be appreciated. >> > >Do you have local_unbound running? It's probably caching the result. > >/etc/rc.d/local_unbound stop > >Then try your changes to /etc/hosts I have now rebooted the system multiple times, from a cold start, and this has had *no* effect on the output generated by "getent hosts localhos= t". That is *still* showing me that there exists a mapping from "localhost" to an IPv6 address, even though I commented that out in my /etc/hosts file. I really would like to understand why manual edits to /etc/hosts seem to have no effect whatosoever. And more importantly, I'd really still like to know whey X applications cannot seem to connect to the X server when and if DISPLAY is set to localhost:0.0 while they have no problem doing so when DISPLAY is instead set to :0.0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4468.1560802522>