You shouldn't manually update the resolv.conf
, because all changes will be overwritten by data that your local DHCP server provides. Therefore, the network manager of Raspbian Buster has configured by /etc/dhcpcd.conf
. Every configuration of this config file always is overwriting to other network config files on the OS.
All you need is that you should config your network by /etc/dhcpcd.conf
as you want. In this case, follow this procedure:
nano /etc/dhcpcd.conf
Then, add this line:
static domain_name_servers=4.2.2.4 8.8.8.8
Before Raspbian Strech (I'm not sure enough), you could do that. It's some difference we have here and you must follow them to configure the network.
/etc/dhcpcd.conf
? – M. Rostami Jan 31 '20 at 00:19# Generated by resolvconf
essentially means "don't edit this file by hand". – Dmitry Grigoryev Jan 31 '20 at 15:20