From owner-freebsd-questions@freebsd.org Tue Jul 14 16:43:18 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 72CE4368563 for ; Tue, 14 Jul 2020 16:43:18 +0000 (UTC) (envelope-from Lowell@Be-Well.Ilk.Org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5mY133B2z4Kyw for ; Tue, 14 Jul 2020 16:43:17 +0000 (UTC) (envelope-from Lowell@Be-Well.Ilk.Org) Received: from lowell-desk.be-well.ilk.org (router.lan [172.30.250.2]) by be-well.ilk.org (Postfix) with ESMTP id 3863733C06 for ; Tue, 14 Jul 2020 12:34:59 -0400 (EDT) Received: by lowell-desk.be-well.ilk.org (Postfix, from userid 1147) id 2D41023F910B; Tue, 14 Jul 2020 12:34:59 -0400 (EDT) From: Lowell Gilbert To: User Questions Subject: Re: Problem with unbound resolving host References: <20200713102451.017682d2@scorpio.seibercom.net> Reply-To: User Questions Date: Tue, 14 Jul 2020 12:34:59 -0400 In-Reply-To: <20200713102451.017682d2@scorpio.seibercom.net> (jerry@seibercom.net's message of "Mon, 13 Jul 2020 10:24:51 -0400") Message-ID: <44lfjmawcs.fsf@Be-Well.Ilk.Org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4B5mY133B2z4Kyw X-Spamd-Bar: ++++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of Lowell@Be-Well.Ilk.Org has no SPF policy when checking 23.30.133.173) smtp.mailfrom=Lowell@Be-Well.Ilk.Org X-Spamd-Result: default: False [8.66 / 15.00]; HAS_REPLYTO(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; GREYLIST(0.00)[pass,body]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[Ilk.Org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.92)[0.920]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.992]; NEURAL_SPAM_SHORT(0.45)[0.448]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[freebsd-questions-local@Be-Well.Ilk.Org,Lowell@Be-Well.Ilk.Org]; 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:7922, ipnet:23.30.0.0/15, country:US]; FROM_NEQ_ENVFROM(0.00)[freebsd-questions-local@Be-Well.Ilk.Org,Lowell@Be-Well.Ilk.Org]; REPLYTO_EQ_TO_ADDR(5.00)[] X-Spam: Yes 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: Tue, 14 Jul 2020 16:43:18 -0000 > 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.