Ask Your Question

How do I change my DNS settings?

asked 2014-06-03 00:11:20 -0500

candonoharm gravatar image

updated 2015-03-28 10:30:35 -0500

Hello, after reading some of the EFF's 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 04:46:38 -0500

NickTux gravatar image

updated 2017-06-25 05:35:09 -0500

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.<em>3c72168038</em>o.jpg

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 gravatar imagerandomuser ( 2014-06-03 15:03:21 -0500 )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 gravatar imagerandomuser ( 2014-07-29 10:41:53 -0500 )edit

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

christianbueno gravatar imagechristianbueno ( 2017-06-23 14:10:20 -0500 )edit

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

NickTux gravatar imageNickTux ( 2017-06-25 05:36:47 -0500 )edit

answered 2017-09-16 10:52:20 -0500

christianbueno gravatar image

updated 2017-09-16 10:53:08 -0500

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

edit flag offensive delete link more

Question Tools



Asked: 2014-06-03 00:11:20 -0500

Seen: 38,174 times

Last updated: Sep 16 '17