English
Ask Your Question
2

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

1 answer

Sort by ยป oldest newest most voted
1

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

NikTh gravatar image

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 method and write manually the DNS servers you want. Here we are using Google OpenDNS servers 8.8.8.8 and 8.8.8.4 , you can add mutiple addresses by separating them with a comma.

https://farm4.staticflickr.com/3898/14334590042_3c72168038_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
edit flag offensive delete link more

Comments

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:

  dns
       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

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

Follow
2 followers

Stats

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

Seen: 21,084 times

Last updated: Jun 03 '14