Answers for "how to change dns server in ubuntu 14.04"

1

add dns in ubuntu permanently

sudo apt update
sudo apt install resolvconf

sudo systemctl start resolvconf.service
sudo systemctl enable resolvconf.service
sudo systemctl status resolvconf.service

sudo vim /etc/resolvconf/resolv.conf.d/head
and add the following lines in it:
nameserver 8.8.8.8 
nameserver 8.8.4.4

sudo systemctl start resolvconf.service
Posted by: Guest on June-18-2020
-1

ubuntu 20.04 how to check dns server

systemd-resolve --status | grep Current
Posted by: Guest on November-22-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language