sudo apt install resolvconf
sudo systemctl enable --now resolvconf.service
sudo vim /etc/resolvconf/resolv.conf.d/head
# Add the following lines in vim
nameserver 10.0.1.254
nameserver 8.8.8.8
nameserver 8.8.4.4
# then
sudo resolvconf -u
sudo apt install resolvconf
sudo systemctl enable --now resolvconf.service
sudo vim /etc/resolvconf/resolv.conf.d/head
# Add the following lines in vim
nameserver 10.0.1.254
nameserver 8.8.8.8
nameserver 8.8.4.4
# then
sudo resolvconf -u