I changed my dns settings as shown by the website

The changes did not work I just want to get on lol

  • "changes did not work" Well, how did you test that ? Also, what's your Ubuntu version ? Ubuntu 18.04 uses a bit different configuration than say 16.04 – Sergiy Kolodyazhnyy Feb 11 at 3:04
  • lol there's a blocked site that becomes unblocked when I enable on my windows pc.. ibb.co/NCy0vxK I'm on 18.04 – Craig Nelson Feb 11 at 3:08
  • I tried deleting the space after the comma, no difference – Craig Nelson Feb 11 at 3:17
  • OK, try either systemd-resolve --set-dns= in terminal or editing config file as shown in askubuntu.com/a/1024720/295286 Also try systemd-resolve --set-dns= && 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 using netplan which is the network manager in 18.04, however I don't have experience with netplan so cannot suggest how to best edit its config files – Sergiy Kolodyazhnyy Feb 11 at 3:40
  • Didn't work, just to be clear, this is the response I'm supposed to get in the terminal, right?: ibb.co/Tvt244p – Craig Nelson Feb 11 at 4:09

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= --interface=wlp2s0  

or via editing /etc/systemd/resolved.conf to contain the following lines


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:


OR via separate file for fallback nameserver in /etc/systemd/resolved.conf.d/fallback_dns.conf


IPv6 addresses can be used just the same

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.