From owner-freebsd-net@freebsd.org Sat Jun 15 06:38:33 2019 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E57915BDEB6 for ; Sat, 15 Jun 2019 06:38:33 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A19B69252 for ; Sat, 15 Jun 2019 06:38:32 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-io1-xd30.google.com with SMTP id h6so10634539ioh.3 for ; Fri, 14 Jun 2019 23:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=X5Tji79XJ9phfdrsXYqPU9gTzqGsgq+i742Dym6cUxY=; b=sg07+m7lLK/5NbxYtrgrJh51vs7AukvsKU6l9LfBl/zxQHRzyvb+NYVuWVI+o/rjTK BgZRocmutk16ZBJNh+TxZcGIclzeDHSvlL1lkqlMTWwkUWm2hyO1aN5CrQRbAchvIIi4 OOjOSPC0ThegUnq5Fcdr0nAICg1xnHjaHknm5ugCK13QM/6L1C0wi8ItuL6FMMReZ/9X w0jpuV7aGaWMGEov0M5jQ/CDtWCy7c686mgiWRVzJlQmmWvl94zQo5MYBGXe11lZRTTB lPHHQ59ikLdabS4wCptXUZpGwWMy/KqFGFJXa0VWqJkEI5zFWqRyKTxRLaNfRrFLUW02 +MsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=X5Tji79XJ9phfdrsXYqPU9gTzqGsgq+i742Dym6cUxY=; b=FJIfeeDOP6lM3fbr9Pig0wBM5dbwLPXUVQhRS0O3DMmRrP4RrThvvAipO1lLLPulzu 0gr4tDNUbR1qSdA0Z0MbxIxOLg5t6L7GReNiHEWB4J/sx/FH/CoUTowUCWhUZfshpuLR ZG5vYXNiHpALc+YdAe+0jyddBXluYaZvYK5t7/GlPBfoMPgBLhHKxH5lvb2p0g6Dm/kh P7MWaK/0uYQLNndGQndXCsJzth1+CEaMV5lOdyurmmjLWKE/ACA9uYncaDJD2RbnlkiV /9kK47UxGIUUbKD75UjpI2c3/wtwiOMaiARSRzMohpptTLoDT84coy0sisgtii2PUAvA KH5Q== X-Gm-Message-State: APjAAAXBUdAb8yBh37+4JQp6Z0tppcb4rews7nY3SLjSASz2T8EaNCCH wHledAg6EcxNhUI9D7URKztaChXWiwOP8bJ0/dznubvR X-Google-Smtp-Source: APXvYqy9okQH4x3Z4zjNC9UZJl+XPtw0dEjcPVETOsr8HzJVQdejDjWajycFsbcNa7f4j8NHz/O4mC3HThEshKVpuhQ= X-Received: by 2002:a05:6638:281:: with SMTP id c1mr39762165jaq.43.1560580711502; Fri, 14 Jun 2019 23:38:31 -0700 (PDT) MIME-Version: 1.0 References: <2826.1560577969@segfault.tristatelogic.com> In-Reply-To: <2826.1560577969@segfault.tristatelogic.com> From: Adam Date: Sat, 15 Jun 2019 01:38:19 -0500 Message-ID: Subject: Re: localhost woes -- help requested To: "Ronald F. Guilmette" Cc: freebsd-net X-Rspamd-Queue-Id: 7A19B69252 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=sg07+m7l; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of amvandemore@gmail.com designates 2607:f8b0:4864:20::d30 as permitted sender) smtp.mailfrom=amvandemore@gmail.com X-Spamd-Result: default: False [-6.87 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.91)[-0.905,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[0.3.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-2.96)[ip: (-9.25), ipnet: 2607:f8b0::/32(-3.16), asn: 15169(-2.31), country: US(-0.06)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jun 2019 06:38:33 -0000 On Sat, Jun 15, 2019 at 12:54 AM Ronald F. Guilmette wrote: > I've recently completed a long overdue upgrade from FreeBSD 9.1 to > 12.0. And when I say "completed" that isn't 100% accurate, as there > are still a couple of remaining things I can't quite seem to make > work properly. > > Both of these, perhaps coincidentally, have to do with the magic > name "localhost". > > I can't for the life of me figure out what I've done wrong so I am > asking for help. > > First I should probably explain where I have been already, as that > may help to shed light on the problem. > > I installed and configured my new 12.0 system on a different (Intel- > based) machine at first. Got almost everything I need installed and > working on that hardware before, as a last step, pulling the hard > drive out of that system and sticking in into the AMD-based system > which will be its final home. Two things that definitely worked > before I swapped the hard drive to its new home were the Firefox and > Opera browsers. (I know. I checked.) > > Once I had the drive installed on the AMD system, I had to make a > small diddle to /etc/rc.conf to enable the AMD Kernel Mode Switching > graphics driver. But other than that, everything remained pretty > much as it was. The only other thing I did was to tun on ipfw. > It took me awhile to get my ipfw rules all the way I want them, > but now everything is running peachey again... > > ... 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 fwiw, the default ipv6 line matches the ipv4 short then fqdn. -- Adam