PDA

View Full Version : Changing nameservers (open DNS resolvers) in Ubuntu 18 (not via /etc/resolv.conf)



Fli
09-22-2020, 05:55 PM
How to change these:

i read it should be like this:

Command 1:
systemctl status resolvconf.service;systemctl start resolvconf.service;systemctl enable resolvconf.service;systemctl status resolvconf.service;nano /etc/resolvconf/resolv.conf.d/head

Append new lines like for example:
nameserver 193.17.47.1
nameserver 185.43.135.1
nameserver 1.1.1.1
nameserver 8.8.8.8

(cznic, cloudflare, google)

Ctrl+X ; y
to save changes.

Then restart that resolvconf to apply changes:
systemctl start resolvconf.service

How to verify the result? I do not know. But values may change in cat /etc/resolv.conf

latishang
10-01-2020, 04:16 AM
It would be nice if someone has any answer to this. I am interested too.