From owner-freebsd-questions@freebsd.org Thu Jul 16 08:07:35 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 C6DB8359FB8 for ; Thu, 16 Jul 2020 08:07:35 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B6n123HNwz4Cw4 for ; Thu, 16 Jul 2020 08:07:34 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.qeng-ho.org (Postfix) with ESMTP id 947CF1064D; Thu, 16 Jul 2020 09:07:27 +0100 (BST) Subject: Re: Problem with unbound resolving host To: User Questions , Jerry References: <20200713102451.017682d2@scorpio.seibercom.net> <44lfjmawcs.fsf@Be-Well.Ilk.Org> <20200714194600.0fb4ed86@scorpio.seibercom.net> From: Arthur Chance Message-ID: Date: Thu, 16 Jul 2020 09:07:27 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200714194600.0fb4ed86@scorpio.seibercom.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4B6n123HNwz4Cw4 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@qeng-ho.org designates 217.155.128.241 as permitted sender) smtp.mailfrom=freebsd@qeng-ho.org X-Spamd-Result: default: False [-2.75 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.024]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.155.128.240/29]; NEURAL_HAM_LONG(-1.02)[-1.016]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[qeng-ho.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.41)[-0.408]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:13037, ipnet:217.155.0.0/16, country:GB]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Thu, 16 Jul 2020 08:07:35 -0000 On 15/07/2020 00:46, Jerry wrote: > On Tue, 14 Jul 2020 12:34:59 -0400, Lowell Gilbert stated: >>> FreeBSD 11.4-RELEASE-p1 >>> >>> I have: local_unbound_enable="YES" in my /etc/rc.conf file. The >>> problem is with some utility programs like "curl" or "wget" >>> >>> When using either program to assess "https://www.spamhaus.org" a >>> failure message is emitted similar to the following: >>> >>> curl https://www.spamhaus.org >>> curl: (6) Could not resolve host: www.spamhaus.org >>> >>> 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. >>> >>> nameserver 192.168.1.1 >>> options edns0 >> >> I'm sure that is in resolv.conf, but you should mention things like >> that. >> >> 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. >> >> 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. >> >> Be well. > > 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. If /etc/resolv.conf is being reset every time you reboot, it sounds like resolvconf(8) is running. What's in /etc/resolvconf.conf? > This problem only started after updating from FreeBSD 11.4-RELEASE-p0 > to "p1". I have no idea what that could have done though. > -- Fat Earther: One who believes the world is round but has put on too much weight round the middle.