From owner-freebsd-questions@freebsd.org Mon Apr 12 06:31:46 2021 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 E26D05EB2A0 for ; Mon, 12 Apr 2021 06:31:46 +0000 (UTC) (envelope-from kremels@kreme.com) Received: from mail.covisp.net (mail.covisp.net [65.121.55.42]) (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 4FJf5t06Jsz3LHy for ; Mon, 12 Apr 2021 06:31:45 +0000 (UTC) (envelope-from kremels@kreme.com) Content-Type: text/plain; charset=us-ascii Subject: Re: resolvconf From: "@lbutlr" In-Reply-To: <86k0p8q0s0.fsf@bay.localnet> Date: Mon, 12 Apr 2021 00:31:43 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <96EEE7E3-C20D-46B6-88C3-DEF8193F0BE3@kreme.com> References: <60A158D1-8AC8-4233-B268-9CAD1952FE17@kreme.com> <1e498430-3fa3-e3a2-fdee-34381096682c@qeng-ho.org> <86k0p8q0s0.fsf@bay.localnet> To: FreeBSD X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Rspamd-Queue-Id: 4FJf5t06Jsz3LHy X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kremels@kreme.com designates 65.121.55.42 as permitted sender) smtp.mailfrom=kremels@kreme.com X-Spamd-Result: default: False [2.60 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[65.121.55.42:from]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; FROM_HAS_DN(0.00)[]; MISSING_MIME_VERSION(2.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_NA(0.00)[kreme.com]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[65.121.55.42:from:127.0.2.255]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:65.112.0.0/12, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_IN_DNSWL_LOW(-0.10)[65.121.55.42:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2021 06:31:46 -0000 On 11 Apr 2021, at 09:49, Carl Johnson wrote: > Arthur Chance writes: >> On 11/04/2021 11:02, @lbutlr wrote: >>> The man page for resolvecong says there should be a configuration >>> file at >>>=20 >>> /etc/resolvconf.conf >>>=20 >>> But this file foes not exist, and it does not exist in /usr/local/ >>> either. >>>=20 >>> Right now, resolvconf is adding a DNS server that I do not want to >>> /etc/resolve.conf and I want to figure out how to prevent this. I >>> wouldn't mind figuring out what is adding it too, as the IP address >>> does not appear in any file under /etc/ or /usr/local/etc/ >>>=20 >>> If I create /etc/resolvconf.conf: >>>=20 >>> resolvconf NO name_servers 127.0.0.1 x.x.x.x y.y.y.y z.z.z.z >>>=20 >>> Would that stop whatever it is that is adding the unwanted server >>> from adding it and only use the servers I specify? >>=20 >> My /etc/resolvconf.conf just has >>=20 >> resolvconf=3D"NO" >>=20 >> to stop it overwriting /etc/resolv.conf, and then I hand craft >> resolv.conf (this is on a desktop machine where the network doesn't = change). I could have done that, I suppose, but since resolveconf seems to be = baked in, I figured I might as well configure it. > Mine just has the single line: > name_servers=3D"192.168.193.200 192.168.193.1" > and that creates the resolv.conf with those two name servers. According to the man page that would not prevent some other service = adding other resolvers. >>> When was resolveconf tasked with overwriting the resolver.conf file? >>> Was this part of moving to FreeBSD 12? >>=20 >> Earlier than that. I can't remember whether it was 11 or 10. That is odd, because I know that my server was not using the quad9 DNS = when I was on 11.2, though I cannot say that it wasn't;t using = "resolveconf" back then. > I was using 10.2 when I started using resolvconf.conf. As far as I know I never started using resolvconf as I had never heard = of it before a few days ago when I looked at resolve.conf wondering why = I was hitting 9.9.9.9 on occasions and saw "created by resolveconf" and = went investigating. I still do not know where the quad9 DNS that was added came from (simply = editing resolve.conf did not work, it was immediately put back). I've = searched for any files contains "9\.9\.9\.9" to no avail, so maybe in a = DB file? --=20 The truth isn't easily pinned to a page. In the bathtub of history the truth is harder to hold than soap, and much more difficult = to find...