I have a query on a lab session in networking course -lab DNS - and the question is "change the DNS server to google’s DNS which is 8.8.8.8 " which itried to solve with sudo vi /etc/resolv.conf and then i’m not able to locate the line starting with name server to edit it to google’s DNS. Kindly help me in solving this
which Linux flavour are you in ?
generally the problem is solved by editing
/etc/resolv.conf
and adding a line
nameserver 8.8.8.8
The lab runs CentOS, but the above is valid. However to change nameserver, then replace any existing nameserver
line with the new one.