sudo apt install resolvconf 
sudo systemctl enable --now resolvconf.service

令以后,修改 /etc/resolvconf/resolv.conf.d/head 文件的内容,格式如下:

nameserver 1.1.1.1
nameserver 2606:4700:4700::1111