From owner-freebsd-questions@freebsd.org Wed Jul 15 19:36:38 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D6F3036DE48 for ; Wed, 15 Jul 2020 19:36:38 +0000 (UTC) (envelope-from SRS0=5ToD=A2=mail.sermon-archive.info=doug@sermon-archive.info) Received: from mail.sermon-archive.info (sermon-archive.info [71.177.216.148]) by mx1.freebsd.org (Postfix) with ESMTP id 4B6SLW13B2z4v0t for ; Wed, 15 Jul 2020 19:36:34 +0000 (UTC) (envelope-from SRS0=5ToD=A2=mail.sermon-archive.info=doug@sermon-archive.info) Received: from [10.0.1.251] (mini [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4B6SLN2W1Cz2fjW2; Wed, 15 Jul 2020 12:36:28 -0700 (PDT) From: Doug Hardie Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Re: Problem with unbound resolving host Date: Wed, 15 Jul 2020 12:36:28 -0700 References: <20200713102451.017682d2@scorpio.seibercom.net> <44lfjmawcs.fsf@Be-Well.Ilk.Org> <20200714194600.0fb4ed86@scorpio.seibercom.net> To: User Questions , Jerry In-Reply-To: <20200714194600.0fb4ed86@scorpio.seibercom.net> Message-Id: <35DC599D-F342-4694-BA4D-8ED54137F27D@mail.sermon-archive.info> X-Mailer: Apple Mail (2.3445.104.14) X-Virus-Scanned: clamav-milter 0.101.4 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4B6SLW13B2z4v0t X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of SRS0=5ToD=A2=mail.sermon-archive.info=doug@sermon-archive.info designates 71.177.216.148 as permitted sender) smtp.mailfrom=SRS0=5ToD=A2=mail.sermon-archive.info=doug@sermon-archive.info X-Spamd-Result: default: False [-1.38 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.017]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:71.177.216.148]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[lafn.org: no valid DMARC record]; NEURAL_HAM_LONG(-0.92)[-0.919]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.05)[-0.047]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[bc979@lafn.org,SRS0=5ToD=A2=mail.sermon-archive.info=doug@sermon-archive.info]; RCVD_NO_TLS_LAST(0.10)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:5650, ipnet:71.177.216.0/23, country:US]; FROM_NEQ_ENVFROM(0.00)[bc979@lafn.org, SRS0=5ToD=A2=mail.sermon-archive.info=doug@sermon-archive.info] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2020 19:36:39 -0000 > On 14 July 2020, at 16:46, Jerry wrote: >=20 > On Tue, 14 Jul 2020 12:34:59 -0400, Lowell Gilbert stated: >>> FreeBSD 11.4-RELEASE-p1 >>>=20 >>> I have: local_unbound_enable=3D"YES" in my /etc/rc.conf file. The >>> problem is with some utility programs like "curl" or "wget" >>>=20 >>> When using either program to assess "https://www.spamhaus.org" a >>> failure message is emitted similar to the following: >>>=20 >>> curl https://www.spamhaus.org >>> curl: (6) Could not resolve host: www.spamhaus.org >>>=20 >>> The "nameserver" is set to "127.0.0.1" when that occurs. If I modify >>> it as shown below to "192.168.1.1" everything works fine. >>>=20 >>> nameserver 192.168.1.1 >>> options edns0 =20 >>=20 >> I'm sure that is in resolv.conf, but you should mention things like >> that. >>=20 >> I'm also assuming that the machine you're trying this on actually has >> the address 192.168.1.1. Otherwise, um, yes, that's what should = happen. >>=20 >> Check if you're specifying "interface:" in your unbound.conf file. If >> you do, you want to include 127.0.0.1 in the set you specify. = However, >> unless you have a good reason, don't override it at all. >>=20 >> Be well. >=20 > The router's address is "192.168.1.1". The machine's address is > "192.168.1.101". After every reboot, the address in the resolv.conf > file is reset to 127.0.0.1, which usually works, but not always. >=20 > This problem only started after updating from FreeBSD 11.4-RELEASE-p0 > to "p1". I have no idea what that could have done though. I had the same problem a year or so ago. It was consistent on all = devices, although the problem domains tended to be different on each = device. I thought it was my provider's DNS and called them. They sent = out a tech who had just corrected a similar problem earlier that day. = He replaced my modem/router and the problem went away. In my situation, = resolving the problem domains using the modem/router's internal client = worked fine. Using my clients didn't. Using 8.8.8.8 worked = consistently from all. -- Doug