Set permanent DNS nameservers on Ubuntu/Debian with resolv.conf

preview_player
Показать описание


CODE:
(check to see if resolvconf is installed)

(install resolveconf package)
sudo apt update
sudo apt install resolvconf

(confirm resolveconf is running)

(if resolveconf isn't running, enable then start it)

(check resolveconf status)

(edit the head file)

(enter your nameservers below the comments)
nameserver 8.8.8.8
nameserver 8.8.4.4

sudo resolvconf --enable-updates
sudo resolvconf -u

(check if changes we successful)

Free DNS providers:

Before changing DNS servers, you’ll need to find a third-party DNS provider, there are plenty of good (and free) services available. I recommend Google DNS which is what I use and have never had an issue.

I will list here the most popular DNS providers:

GOOGLE
Primary IPv4: 8.8.8.8
Secondary IPv4: 8.8.4.4
Preferred IPv6: 2001:4860:4860::8888
Alternate IPv6: 2001:4860:4860::8844
OPENDNS
Primary: 208.67.222.222
Secondary: 208.67.220.220
Preferred IPv6: 2620:0:ccc::2
Alternate IPv6: 2620:0:ccd::2
DNS.WATCH
Primary: 84.200.69.80
Secondary: 84.200.70.40
LEVEL3
Primary: 209.244.0.3
Secondary: 209.244.0.4
NORTON
Primary: 199.85.126.10
Secondary: 199.85.127.10
COMMODO
Primary: 8.26.56.26
Secondary: 8.20.247.20
VERISIGN
Primary: 64.6.64.6
Secondary: 64.6.65.6
MORE SERVERS…

Рекомендации по теме
Комментарии
Автор

Thank you very much for your video, without a doubt they are the best on Ubuntu 20.04

jmorenomar
Автор

Thanks heaps dude! This worked perfectly on one of my machines, but on this current one, the only thing going sort of wrong is when I try and get resolvconf to update with "sudo resolveconf -u" the terminal returns the message :
sudo: resolveconf: command not found

I entered all previous commands including the enable update command.
So, a little puzzled.

PS.
Your guide is really well written, the best I've found.

gnuPirate
Автор

hello, i get messages that say failed to fetch http... after the command sudo apt update and after i put the command sudo apt install resolvconf it says:
Package resolvconf is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source.

E: Package resolvconf has no installation candidate

what can i do about this? thanks

klestilluka