Ask Your Question

How do I change my DNS settings?

asked 2014-06-03 05:11:20 +0000

candonoharm gravatar image

updated 2015-03-28 15:30:35 +0000

Hello, after reading some of the EFF's http://prism-break.org recommendations for enhancing privacy, I want to change the DNS settings on fedora 20. Here I was thinking OpenDNS was benign. How do I find out what my DNS settings are and how do I change them? Thanks.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-06-03 09:46:38 +0000

NikTh gravatar image

updated 2017-06-25 10:35:09 +0000

If you are using Fedora 20 with the pre-installed GNOME environment, equals to GNOME network manager.

Search and find network connection application and open it. Then, find your connection in the list and click edit. Go to ipv4 settings select Automatic (DHCP) addresses only as the method and write manually the DNS servers you want. Here we are using Google OpenDNS servers and, you can add multiple addresses by separating them with a comma.


After you save the changes, restart network manager.

sudo systemctl restart NetworkManager

Now if you look at resolv.conf, you should see only the DNS addresses you added.

cat /etc/resolv.conf

At Fedora 25-26 the Network Manager GUI is a bit different but still, the same solution applies.

image description

edit flag offensive delete link more


If you ever need access via captive portal, such as a hotel, remember where you found this!

randomuser ( 2014-06-03 20:03:21 +0000 )edit

Alternatively, you can edit /etc/resolv.conf and /etc/NetworkManager/NetworkManager.conf - this will be global instead of per-connection. Here's an excerpt from man NetworkManager.conf:

       Set the DNS (resolv.conf) processing mode.

       default: The default if the key is not specified.
       NetworkManager will update resolv.conf to reflect the
       nameservers provided by currently active connections.

       dnsmasq: NetworkManager will run dnsmasq as a local
       caching nameserver, using a "split DNS" configuration if
       you are connected to a VPN, and then update resolv.conf
       to point to the local nameserver.

       none: NetworkManager will not modify resolv.conf.
randomuser ( 2014-07-29 15:41:53 +0000 )edit

hello, on fedora 25, Adresses -->Automatic(DHCP) , DNS--> Automatic on/off , It is different

christianbueno ( 2017-06-23 19:10:20 +0000 )edit

@christianbueno The GUI is a bit different yes. I edited my answer and added the new NM GUI. Check it.

NikTh ( 2017-06-25 10:36:47 +0000 )edit

answered 2017-09-16 15:52:20 +0000

christianbueno gravatar image

updated 2017-09-16 15:53:08 +0000

image of ipv6: I configure my network settings to use Google public DNSimage description

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools



Asked: 2014-06-03 05:11:20 +0000

Seen: 29,732 times

Last updated: Sep 16 '17