LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-19-2023, 03:13 AM   #1
Bala451987
Member
 
Registered: Aug 2023
Posts: 55

Rep: Reputation: 0
Trying change my DNS in Linuxmint


I recently changed my DNS settings to Google DNS on my Linuxmint. Initially, I made the changes through the GUI in the Advanced Networking Configuration, and everything seemed to be configured correctly. However, when I checked the `resolv.conf` file, it was still using the existing DNS server. To resolve this issue, I tried a few solutions. First, I created a tail file inside `resolv.conf`, and then I downloaded the 'resolvconf' application. After these steps, I checked the DNS settings via the terminal using the command `nmcli dev show | grep DNS`, and it appeared to have changed successfully.

I decided to make these DNS changes because I was experiencing issues accessing Obsidian community plugins with my previous DNS settings. When I contacted Obsidian support, they suggested that this might be the cause of the DNS problem from the user from India. Now, I would like to confirm if I made any mistakes during this process as I am still unable to access the plugins within Obsidian.
Attached Thumbnails
Click image for larger version

Name:	terminal.png
Views:	11
Size:	81.0 KB
ID:	41694  
 
Old 09-19-2023, 12:05 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 799

Rep: Reputation: 256Reputation: 256Reputation: 256
I don't use Linuxmint nor NM so beware...

You can set the DNS in several places, depending on system setup: /etc/resolv.conf, or /etc/resolvconf.conf. Additionally, if you get your host params via DHCP, DHCP settings will often clobber what you set in local files. If resolvconf is setting it, you'll see
Code:
head -n 1 /etc/resolv.conf
# Generated by resolvconf
Code:
## Configuration for resolvconf(8)
## See resolvconf.conf(5) for details
## These commands must be shell commands because this script is 
## sourced by resolvconf itself.
resolv_conf=/etc/resolv.conf

# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
#name_servers=127.0.0.1

# Add prefered nameservers.
name_servers="208.67.222.222 208.67.222.220"
You can tell your DHCP server to ignore sent settings (/etc/dhcpcd.conf)
Code:
# Don't use our flakey ISP DNS servers
# Use OpenDNS's
static domain_name_servers=208.67.222.222 208.67.222.220 2620:0:ccc::2 2620:0:ccd::2
Evidently my distro started using resolvconf. I question the sanity of using a configuration file (resolvconf.conf) to tools (resolvconf) to write configuration files (resolv.conf) via tools (dhcpcd) to write configuration of tools (the nsswitch "host" database) but I digress...

NM might also have a way of setting some of these.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hi all, I have a question for you: I'm trying to upgrade to the next LinuxMint but it comes out a warning saying that it may be a risk. Federsmiths Linux - Software 7 06-13-2020 07:38 PM
[SOLVED] LinuxMint 18 Host with LinuxMint 18 Guest in VirtualBox 5.1 Error TedCleggett Linux - Virtualization and Cloud 8 09-16-2016 02:40 PM
linuxmint and dns leaks espressoguy Linux - Newbie 2 04-17-2012 03:46 PM
[SOLVED] Trying to get Linuxmint up and running with a NVidia GeForce Graphics Card gribbsy Linux - Newbie 2 01-10-2010 03:21 PM
DNS problem with www.linuxmint.com; everything else seems fine... rps63ifid Linux - Networking 9 11-12-2007 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration