From owner-freebsd-stable@freebsd.org Mon Aug 6 14:58:36 2018 Return-Path: Delivered-To: freebsd-stable@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 32D47105B700 for ; Mon, 6 Aug 2018 14:58:36 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CA1427B457 for ; Mon, 6 Aug 2018 14:58:35 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: by mailman.ysv.freebsd.org (Postfix) id 8BB8C105B6FF; Mon, 6 Aug 2018 14:58:35 +0000 (UTC) Delivered-To: stable@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 7A51F105B6FE for ; Mon, 6 Aug 2018 14:58:35 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (phouka1.phouka.net [107.170.196.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "phouka.net", Issuer "Go Daddy Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 06A0B7B456 for ; Mon, 6 Aug 2018 14:58:34 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (localhost [127.0.0.1]) by phouka1.phouka.net (8.15.2/8.15.2) with ESMTPS id w76EvHhv095325 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 6 Aug 2018 07:57:17 -0700 (PDT) (envelope-from warlock@phouka1.phouka.net) Received: (from warlock@localhost) by phouka1.phouka.net (8.15.2/8.15.2/Submit) id w76EvHIC095324; Mon, 6 Aug 2018 07:57:17 -0700 (PDT) (envelope-from warlock) Date: Mon, 6 Aug 2018 07:57:17 -0700 From: John Kennedy To: Pete French Cc: stable@freebsd.org Subject: Re: How do I stop using local_unbound ? Message-ID: <20180806145717.GE30738@phouka1.phouka.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2018 14:58:36 -0000 On Mon, Aug 06, 2018 at 03:06:00PM +0100, Pete French wrote: > having enabled local_unbound in /etc/rc.d how do I remove that > and go back to using just DHCP delivered nameservers ? I > set it to 'NO' but yet the machine still seems to have traces of > the config in other places and keeps trying to use them, for reasons I > dont understand. > > Is there a quyick guide to clearing this off a system when you dont want to use > it anymore ? I get that it needs to be slightly complex to do what it does, > but its proving very hard to fix the broken DNS looksup! Hmm. First, make sure that it isn't running (service local_unbound stop, etc). Then look at your /etc/resolv.conf -- unbound tends to rewrite that on initial startup, taking some of it's settings and inserting itself into the middle as a caching DNS server. At the very least, you want something like this: nameserver 8.8.8.8 I think the default DHCP client stomps all over /etc/resolv.conf fairly well, but see what options are in there (for example, options for domain-name-servers and domain-name). The stock /etc/dhclient.conf is all comments. I have issues with the DNS results my ISP returns to me, but setting up a cache or using sites like 8.8.8.8 (google public DNS, if you don't mind feeding the beast) fixes that. For something deeper, what is your /etc/host.conf? Mine is this: # Auto-generated from nsswitch.conf hosts dns That lets your /etc/hosts contents override DNS, which is often a good thing. By default, your /etc/hosts should be pretty much all comments except for these two lines: [grep -v '^#' /etc/hosts] ::1 localhost localhost.my.domain 127.0.0.1 localhost localhost.my.domain