[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to change default nameserver?



On Tue, Apr 11, 2023 at 01:09:37PM -0400, gene heskett wrote:
> Keeping networking working on linux has been an art, not a science.
> looking at one of my buster machines. /etc/network/interfaces has this:
> ====
> # The primary network interface
> allow-hotplug eno1
> iface eno1 inet static
> 	address 192.168.71.10/24
> 	gateway 192.168.71.1
> 	# dns-* options are implemented by the resolvconf package, if installed
> 	dns-nameservers 192.168.71.1
> 	dns-search coyote.den
> ====
> And it Just Works.

The last two lines of that file are configuration elements for the
resolvconf package.  They only take effect if resolvconf is installed.

> But that was way the hell and gone too easy, so it just
> had to be changed, so that stuff no longer works for bullseye.

Most likely, your bullseye system simply doesn't have resolvconf.

This is discussed at
<https://wiki.debian.org/resolv.conf#Configuring_openresolv_or_resolvconf>.

The comment right before them also tells you which package you need for
those lines to work.


Reply to: