I would like to change the DNS server for my Kubuntu computer so I can do anything while surfing the web.

Can someone please help show me how it is done?

  • If "my uncle did it before but wont tell me how to change the DNS on my Kubuntu computer so i can do anything while surfing the web", then he probably did it for a good reason (like keeping you from visiting specific web sites), and without knowing how/where he did that, it's difficult to come up with a solution. – heynnema Jun 4 '19 at 14:50

The simplest way to set your own DNS servers is shown below. (This may, or may not, solve your problem, as we don't know what changes your Uncle made to limit your Internet access.)

enter image description here

| improve this answer | |

If you want to use a specific DNS server, you can set up your network connections manually.

These options are under System Settings > Network > Connections.

Open the individual settings for your network. You will want to make the following changes to your IPv4 and IPv6 settings.

  • Change Method to "Manual".

  • Put the IP address of your desired DNS server under DNS Servers. Cloudflare Privacy DNS ( is used here as an example.

In the box below, "Add" your computer's local IP address:

  • Address is the local IP address for your device (your computer). If you don't know it, type ip address into a terminal. Your local IP address will be one of the ones listed after the word inet and will have an address in the DCHP reservation block for your router.

  • Netmask should default to

  • Gateway is the IP address of your router (or whatever device on your network handles DHCP and assigns a local IP address to your device)

  • Select "IPv4 is required for this connection" if you want to restrict access to IPv4 only. Otherwise you will need to set up the IPv6 tab using IPv6 type addresses.

  • Accept these new settings, then open a terminal and run sudo service network-manager restart or just reboot your computer.

image of settings screen

It is recommended that you set a DHCP reservation on your router to match the local IP address you entered. Otherwise, your local IP address can change and these settings would need to be changed each time. You will need to consult the documentation for your router if you wish to do this.

| improve this answer | |
  • This is wrong. You do NOT need to make a manual connection profile to set DNS servers. – heynnema Jun 4 '19 at 14:53
  • @heynnema thanks for your input. This is one valid way to achieve what OP is asking. I'm sure it's not the only way. Can you please elaborate what is incorrect. I would like to improve the answer. If I switch "must" to "can" would that improve the answer? – Nmath Jun 4 '19 at 16:52
  • If would be better if you showed how to do it with either normal dhcp settings, or with Address Only settings. It may be called something slightly different in Kubuntu. – heynnema Jun 4 '19 at 18:05
  • That does not change the fact that this is a valid answer. Like with most things, there is more than one way to skin a cat. It may not have been the method that you would have chosen, but it does not make the answer incorrect -- Since I am familiar with the GUI settings in KDE, -- and OP specifically asked how to do it in KDE -- this was my contribution. I would love to see you make that contribution to this post as a different answer I would also learn something. – Nmath Jun 4 '19 at 20:01
  • I don't use Kubuntu, so I can't get screenshots to demonstrate. And you're correct, there's usually more than one way to do something. Your way requires OP to determine a valid static IP and hope it's valid tomorrow, and the OP may not know how to do that. Plus, they probably use auto/dhcp settings now, so there's little difficulty with the slight change of adding DNS servers... if one decides to do it that way. There are other ways too... :-) – heynnema Jun 4 '19 at 20:26

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.