how to change nameservers in linux code example
Example 1: change dns resolver linux
$ sudo vim /etc/resolvconf/resolv.conf.d/base
Example 2: resolvconf set dns
$ sudo systemctl start resolvconf.service
$ sudo systemctl enable resolvconf.service
$ sudo systemctl status resolvconf.service