[SOLVED] Change DNS Settings?

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
User avatar
Carl
Level 5
Level 5
Posts: 695
Joined: Wed Apr 15, 2009 5:20 pm
Location: Isle of Wight, UK

[SOLVED] Change DNS Settings?

Post by Carl » Thu Jul 26, 2018 4:58 pm

Hi,

How do I go about changing the DNS settings from within Linux Mint 19? unfortunately I cannot change them in my router so this is the next best thing

Thank you
Last edited by Carl on Thu Jul 26, 2018 5:21 pm, edited 1 time in total.

User avatar
Pjotr
Level 20
Level 20
Posts: 10772
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Change DNS Settings?

Post by Pjotr » Thu Jul 26, 2018 5:00 pm

Last edited by Pjotr on Fri Jul 27, 2018 6:10 am, edited 1 time in total.
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
Carl
Level 5
Level 5
Posts: 695
Joined: Wed Apr 15, 2009 5:20 pm
Location: Isle of Wight, UK

Re: Change DNS Settings?

Post by Carl » Thu Jul 26, 2018 5:04 pm

Pjotr wrote:
Thu Jul 26, 2018 5:00 pm
Try this:
https://sites.google.com/site/easylinux ... our-system
(item 10, right column)
Thank you but unfortunately xed says it cannot find that file? "Could not find the file admin:///etc/resolvconf/resolv.conf.d/tail."

User avatar
Pjotr
Level 20
Level 20
Posts: 10772
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Change DNS Settings?

Post by Pjotr » Thu Jul 26, 2018 5:07 pm

Carl wrote:
Thu Jul 26, 2018 5:04 pm
Pjotr wrote:
Thu Jul 26, 2018 5:00 pm
Try this:
https://sites.google.com/site/easylinux ... your-ystem
Thank you but unfortunately xed says it cannot find that file? "Could not find the file admin:///etc/resolvconf/resolv.conf.d/tail."
You're right... apparently systemd has taken over in that respect, as well. I'll have to research that a bit....
Last edited by Pjotr on Fri Jul 27, 2018 6:11 am, edited 1 time in total.
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
Carl
Level 5
Level 5
Posts: 695
Joined: Wed Apr 15, 2009 5:20 pm
Location: Isle of Wight, UK

Re: Change DNS Settings?

Post by Carl » Thu Jul 26, 2018 5:21 pm

Looks like this works
I've found and adapted a solution that works from https://support.opendns.com/hc/en-us...8007087-Ubuntu

To change your system to use the OpenDNS servers (this is for Mint 19 - adapt accordingly for your distro/version):

Code: Select all

sudo cp /etc/resolv.conf /etc/resolv.conf.auto

Code: Select all

xed admin:///etc/dhcp/dhclient.conf
and add supersede domain-name-servers 208.67.222.222,208.67.220.220; after the require subnet-mask command.

Save the file.

Find out your interface device name with netstat -i and replace device_name below with that device name.

Code: Select all

sudo ifconfig device_name down && sudo ifconfig device_name up
Disconnect and reconnect.
from: https://www.linuxquestions.org/question ... ost5866919

User avatar
Pjotr
Level 20
Level 20
Posts: 10772
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: [SOLVED] Change DNS Settings?

Post by Pjotr » Thu Jul 26, 2018 5:27 pm

I've modified my how-to: it can easily be done by means of Network Manager:
https://sites.google.com/site/easylinux ... our-system
(item 10, right column)
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Post Reply

Return to “Other networking topics”