Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Apr 2021 08:49:35 -0700
From:      Carl Johnson <carlj@peak.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: resolvconf
Message-ID:  <86k0p8q0s0.fsf@bay.localnet>
In-Reply-To: <1e498430-3fa3-e3a2-fdee-34381096682c@qeng-ho.org> (Arthur Chance's message of "Sun, 11 Apr 2021 13:44:39 %2B0100")
References:  <60A158D1-8AC8-4233-B268-9CAD1952FE17@kreme.com> <1e498430-3fa3-e3a2-fdee-34381096682c@qeng-ho.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Arthur Chance <freebsd@qeng-ho.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86k0p8q0s0.fsf>