I changed my dns settings as shown by the website https://1.1.1.1/
The changes did not work I just want to get on 1.1.1.1 lol
I changed my dns settings as shown by the website https://1.1.1.1/
The changes did not work I just want to get on 1.1.1.1 lol
As resolved ( no pun intended ) in the comments, setting DNS on 18.04 can be done by configuring systemd-resolved either via
# note, is the device via which you access internet - wireless or ethernet
# interface name can be found via `ip addr` command
systemd-resolve --set-dns=1.1.1.1 --interface=wlp2s0
or via editing /etc/systemd/resolved.conf to contain the following lines
[Resolve]
DNS=1.1.1.1
As reported by OP in the comments, they had to restart the system in order to make changes apply, which also suggests a sudo systemctl restart networking would be sufficient without restart.
For multiple DNS servers, Arch Wiki suggests either providing multiple nameserver addresses as in /etc/systemd/resolved.conf.d/dns_servers.conf file:
[Resolve]
DNS=1.1.1.1 1.0.0.1
OR via separate file for fallback nameserver in /etc/systemd/resolved.conf.d/fallback_dns.conf
[Resolve]
FallbackDNS=1.0.0.1
IPv6 addresses can be used just the same
systemd-resolve --set-dns=1.1.1.1in terminal or editing config file as shown in https://askubuntu.com/a/1024720/295286 Also trysystemd-resolve --set-dns=1.1.1.1 && systemctl restart systemd-resolved(that is set DNS and then restart the service which we're configuring) If that doesn't work you'd have to wait for someone to post an answer usingnetplanwhich is the network manager in 18.04, however I don't have experience withnetplanso cannot suggest how to best edit its config files – Sergiy Kolodyazhnyy Feb 11 '19 at 03:40