From owner-freebsd-questions@freebsd.org Sun Apr 11 15:49:51 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 3A3A85D28BD for ; Sun, 11 Apr 2021 15:49:51 +0000 (UTC) (envelope-from carlj@peak.org) Received: from smtp.email-protect.gosecure.net (smtp.email-protect.gosecure.net [208.80.202.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.email-protect.gosecure.net", Issuer "Thawte RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FJGXF7539z3plh for ; Sun, 11 Apr 2021 15:49:49 +0000 (UTC) (envelope-from carlj@peak.org) Received: from envoy14.neonova.net ([137.118.58.100]) by smtp.email-protect.gosecure.net ({66aca2d6-78b8-11eb-a216-4527b449efdc}) via TCP (outbound) with ESMTP id 20210411154940270_00002459 for ; Sun, 11 Apr 2021 08:49:40 -0700 X-RC-FROM: X-RC-RCPT: Received: from bay.localnet (unknown [199.58.99.76]) (Authenticated sender: carlj@peak.org) by envoy14.neonova.net (Postfix) with ESMTPA id 4FJGX06g8Fz9tKZ for ; Sun, 11 Apr 2021 11:49:36 -0400 (EDT) Received: from carlj by bay.localnet with local (Exim 4.94 (FreeBSD)) (envelope-from ) id 1lVcL9-000Bce-IX for freebsd-questions@freebsd.org; Sun, 11 Apr 2021 08:49:35 -0700 From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: resolvconf References: <60A158D1-8AC8-4233-B268-9CAD1952FE17@kreme.com> <1e498430-3fa3-e3a2-fdee-34381096682c@qeng-ho.org> Date: Sun, 11 Apr 2021 08:49:35 -0700 In-Reply-To: <1e498430-3fa3-e3a2-fdee-34381096682c@qeng-ho.org> (Arthur Chance's message of "Sun, 11 Apr 2021 13:44:39 +0100") Message-ID: <86k0p8q0s0.fsf@bay.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-MAG-OUTBOUND: greymail.email-protect.gosecure.net@137.118.58.100/32 X-Rspamd-Queue-Id: 4FJGXF7539z3plh X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=peak.org; spf=pass (mx1.freebsd.org: domain of carlj@peak.org designates 208.80.202.2 as permitted sender) smtp.mailfrom=carlj@peak.org X-Spamd-Result: default: False [-1.80 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[208.80.202.2:from]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:208.80.200.0/21]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[208.80.202.2:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[peak.org,none]; NEURAL_SPAM_LONG(1.00)[1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14618, ipnet:208.80.202.0/23, country:US]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] 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: Sun, 11 Apr 2021 15:49:51 -0000 Arthur Chance writes: > On 11/04/2021 11:02, @lbutlr wrote: >> The man page for resolvecong says there should be a configuration >> file at >> >> /etc/resolvconf.conf >> >> But this file foes not exist, and it does not exist in /usr/local/ >> either. >> >> 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/ >> >> If I create /etc/resolvconf.conf: >> >> resolvconf NO name_servers 127.0.0.1 x.x.x.x y.y.y.y z.z.z.z >> >> Would that stop whatever it is that is adding the unwanted server >> from adding it and only use the servers I specify? > > My /etc/resolvconf.conf just has > > resolvconf="NO" > > 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). Mine just has the single line: name_servers="192.168.193.200 192.168.193.1" and that creates the resolv.conf with those two name servers. >> When was resolveconf tasked with overwriting the resolver.conf file? >> Was this part of moving to FreeBSD 12? > > Earlier than that. I can't remember whether it was 11 or 10. I was using 10.2 when I started using resolvconf.conf. -- Carl Johnson carlj@peak.org