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

Re: how to change default nameserver?



On Sun, Apr 09, 2023 at 04:53:17PM +0200, zithro wrote:
> - Either you use DHCP, and the DNS will be provided by the DHCP server, so
> don't touch resolv.conf (the DHCP server CAN provide 127.0.0.1 as DNS
> server)
> - or you use static addressing, and you can simply remove the dhcp-client
> package, so resolv.conf will be left alone.

That's not always true.  Sometimes you want the IP address from DHCP,
but you want to provide your own DNS.  There are LOTS of scenarios where
this is desirable.

That's why this is such an important topic, and why it keeps coming up
over and over again.

That's why we have a wiki page which describes several different solutions,
so that each sysadmin who runs into this problem can find a suitable one.

https://wiki.debian.org/resolv.conf


Reply to: