ubuntu 20.04 change dns server permanently code example
Example 1: resolvconf set dns
$ sudo systemctl start resolvconf.service
$ sudo systemctl enable resolvconf.service
$ sudo systemctl status resolvconf.service
Example 2: resolvconf set dns
$ sudo nano /etc/resolvconf/resolv.conf.d/head