Discussion:
resolvconf
@lbutlr
2021-04-11 10:02:18 UTC
Permalink
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?

When was resolveconf tasked with overwriting the resolver.conf file? Was this part of moving to FreeBSD 12?
--
I have seen galaxies die. I have watched atoms dance. But until I had
the dark behind the eyes, I didn't know the death from the dance.
Arthur Chance
2021-04-11 12:44:39 UTC
Permalink
Post by @lbutlr
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/
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).
Post by @lbutlr
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.
--
The number of people predicting the demise of Moore's Law doubles
every 18 months.
Carl Johnson
2021-04-11 15:49:35 UTC
Permalink
Post by Arthur Chance
Post by @lbutlr
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/
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.
Post by Arthur Chance
Post by @lbutlr
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 ***@peak.org
@lbutlr
2021-04-12 06:31:43 UTC
Permalink
Post by Carl Johnson
Post by Arthur Chance
Post by @lbutlr
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/
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).
I could have done that, I suppose, but since resolveconf seems to be baked in, I figured I might as well configure it.
Post by Carl Johnson
name_servers="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.
Post by Carl Johnson
Post by Arthur Chance
Post by @lbutlr
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.
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.
Post by Carl Johnson
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?
--
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...
Carl Johnson
2021-04-12 15:52:01 UTC
Permalink
Post by @lbutlr
Post by Carl Johnson
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?
If one of your interfaces is using dhcp configuration, then whatever is
hosting that might be supplying quad9 as the dns server. That is just a
guess since I don't know enough about how resolvconf or dhcp work.
--
Carl Johnson ***@peak.org
@lbutlr
2021-04-12 18:29:45 UTC
Permalink
Post by Carl Johnson
Post by @lbutlr
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?
If one of your interfaces is using dhcp configuration,
Nope. No DHCP on the servers.
Post by Carl Johnson
then whatever is
hosting that might be supplying quad9 as the dns server. That is just a
guess since I don't know enough about how resolvconf or dhcp work.
Yeah, this is very weird.
--
No taxation without misrepresentation.
Loading...