LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2018, 03:49 AM   #1
byebyemrgates
Member
 
Registered: Nov 2017
Location: Blue Mountains, Australia!
Distribution: Mint 19
Posts: 150

Rep: Reputation: Disabled
Question where are internet settings in Linux Mint XFCE


Hello there! Can anyone please explain where I can find internet and network settings in Linux Mint XFCE (or Cinnamon)
In Windows, I was used to seeing settings for Internet and Network in just "settings" or "control panel"
I just want to change the DNS; plus I just want to know how to bring up those settings
Hopefully there is a way to do it in ... sorry... GUI...?
Cheers!
 
Old 02-01-2018, 04:09 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859
Linux is not Windows.

If you search on the web for how to change the DNS settings for Linux Mint, you will find many ways of doing this.

The following works for me:

Open the terminal and run the following command (entering your password when requested):

Code:
gksudo xed /etc/resolvconf/resolv.conf.d/head
Ignoring the warning message at the top of this file, enter the following 2 lines:

Code:
nameserver 208.67.222.222
nameserver 208.67.220.220
(or whichever DNS servers you wish - these are the OpenDNS ones)

Close the file, saving when requested.

Run the following command to make the change stick:

Code:
sudo resolvconf -u
That should be you.
 
Old 02-01-2018, 06:06 AM   #3
byebyemrgates
Member
 
Registered: Nov 2017
Location: Blue Mountains, Australia!
Distribution: Mint 19
Posts: 150

Original Poster
Rep: Reputation: Disabled
Thanks, hydrurga!
I actually just realized that, because I already had DNS server settings set-up in the modem (I also use openDNS!), it is what is doing the DNS thing; so I might leave it...(hope its OK).
But is there an app someone knows about that displays those settings in GUI? Or a commnad that displays them in terminal?
 
Old 02-01-2018, 08:30 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859
Quote:
Originally Posted by byebyemrgates View Post
Thanks, hydrurga!
I actually just realized that, because I already had DNS server settings set-up in the modem (I also use openDNS!), it is what is doing the DNS thing; so I might leave it...(hope its OK).
But is there an app someone knows about that displays those settings in GUI? Or a commnad that displays them in terminal?
I'm not sure if there is a GUI interface for that, to be honest, because I just carry out the steps I mentioned above on any new system and leave it to do its work.

To determine which DNS server is in effective use, try either of the following on the command line:

Code:
dig bbc.co.uk

nslookup bbc.co.uk
(replace bbc.co.uk with any other valid internet domain, if preferred).

In both cases, the Server/SERVER tag on the output should show you the effective DNS server (and thus show if your modem is working correctly in that regard). This doesn't work for certain local cacheing cases, but it should work in most cases. Let us know how it goes.
 
1 members found this post helpful.
Old 02-01-2018, 08:51 AM   #5
byebyemrgates
Member
 
Registered: Nov 2017
Location: Blue Mountains, Australia!
Distribution: Mint 19
Posts: 150

Original Poster
Rep: Reputation: Disabled
thanks hydrurga!
here is the output:
; <<>> DiG 9.10.3-P4-Ubuntu <<>> bbc.co.uk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46941
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;bbc.co.uk. IN A

;; ANSWER SECTION:
bbc.co.uk. 208 IN A 151.101.64.81
bbc.co.uk. 208 IN A 151.101.128.81
bbc.co.uk. 208 IN A 151.101.192.81
bbc.co.uk. 208 IN A 151.101.0.81

;; Query time: 8 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Fri Feb 02 01:47:38 AEDT 2018
;; MSG SIZE rcvd: 102

So it is showing 127.0.1.1 - what's that? I know my DNS is working - because it tells me so in the OpenDNS website...
I actually fo8und this also in Network Settings - DNS tab
 
Old 02-01-2018, 09:03 AM   #6
tocii.
LQ Newbie
 
Registered: Jan 2018
Distribution: Ubuntu, Mint
Posts: 27

Rep: Reputation: Disabled
Quote:
So it is showing 127.0.1.1 - what's that?
'127.0.1.1' is your loopback address.
 
Old 02-01-2018, 09:17 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859
Aha. Perhaps someone more knowledgeable than I am can answer that, but it looks as if that is saying that it is using the router (127.0.1.1; local DNS cache server) as the DNS server (which of course is using OpenDNS in turn if you've set that).

More info:

https://www.debian.org/doc/manuals/d...ame_resolution

https://www.reddit.com/r/linux4noobs...1_what_is_the/

As long as you know that your router is effectively set to use the OpenDNS servers, you don't need to worry about it.
 
1 members found this post helpful.
Old 02-01-2018, 09:31 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,934

Rep: Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858
Mint automatically installs dnsmasq and configures it as a local DNS cache. This is why you see

SERVER: 127.0.1.1#53(127.0.1.1)

Basically the purpose of a DNS is to resolve a URL i.e bbc.co.uk to an IP address. The DNS cache attempts to speed up the process by handling the name resolution of recently visited addresses before the request is sent out to the internet.
 
2 members found this post helpful.
Old 02-01-2018, 09:40 AM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859
Quote:
Originally Posted by michaelk View Post
Mint automatically installs dnsmasq and configures it as a local DNS cache. This is why you see

SERVER: 127.0.1.1#53(127.0.1.1)

Basically the purpose of a DNS is to resolve a URL i.e bbc.co.uk to an IP address. The DNS cache attempts to speed up the process by handling the name resolution of recently visited addresses before the request is sent out to the internet.
Thanks for this info, michaelk.

So, if I set up specific DNS addresses in resolv.conf, am I effectively cutting that local DNS cache out of the equation by making direct external DNS calls each time?

My resolv.conf:

Code:
nameserver 208.67.222.222
nameserver 208.67.220.220

nameserver 127.0.1.1
search lan

Last edited by hydrurga; 02-01-2018 at 09:42 AM.
 
1 members found this post helpful.
Old 02-01-2018, 09:54 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,934

Rep: Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858
Yes, Look at your output for running consecutive dig bbc.co.uk commands. The query time for using a local cache should be in the order of 8 msec versus ~40 msec without.
 
1 members found this post helpful.
Old 02-01-2018, 10:06 AM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859
Quote:
Originally Posted by michaelk View Post
Yes, Look at your output for running consecutive dig bbc.co.uk commands. The query time for using a local cache should be in the order of 8 msec versus ~40 msec without.
21ms. I can live with that.

So, I decided to add 127.0.1.1 before my external nameservers in resolv.conf to see if I could search the local cache first. This degrades the time to 44-50ms. Any idea why this may be?
 
1 members found this post helpful.
Old 02-01-2018, 10:09 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859
By the way, byebyemrgates, I hope that you don't mind me taking the thread slightly off at a tangent!

I hope that this related discussion may be of interest to you and others who read the thread too. It's certainly interesting to me.
 
1 members found this post helpful.
Old 02-01-2018, 10:24 AM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,934

Rep: Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858Reputation: 2858
I don't know. I have not played with caching much but there are several settings that configure dns cache with NetworkManage and dhclient.
 
1 members found this post helpful.
Old 02-01-2018, 10:36 AM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859
Quote:
Originally Posted by michaelk View Post
I don't know. I have not played with caching much but there are several settings that configure dns cache with NetworkManage and dhclient.
Ok, fair enough. Interestingly, if I depend on the local cache (no external nameservers in resolv.conf) then I consistently get 44-52ms. With my external nameservers in pole position, c20-25ms. It's as if the DNS system is not using the cache at all, always reverting (if no other external nameservers take prominence) to the router's DNS settings which point at the ISP's nameservers.

Whatever the situation, I'm envious of the OP's 8ms response time.
 
1 members found this post helpful.
Old 02-01-2018, 05:17 PM   #15
byebyemrgates
Member
 
Registered: Nov 2017
Location: Blue Mountains, Australia!
Distribution: Mint 19
Posts: 150

Original Poster
Rep: Reputation: Disabled
Thanks everyone, don't mind you all "hijacking" the thread - good education for me
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Linux Mint 18.1 Xfce Edition Enters Beta, Based on Ubuntu 16.04 and Xfce 4.12 LXer Syndicated Linux News 0 01-05-2017 09:54 AM
LXer: Linux Mint 18 Xfce Enters Beta, Gets X-Apps, Mint-Y, Many Ubuntu 16.04 Goodies LXer Syndicated Linux News 0 07-24-2016 06:15 PM
[SOLVED] bios settings boot from usb Linux Mint 13 Xfce Siesz52 Linux - Newbie 8 04-12-2014 04:57 AM
[SOLVED] Need help in installing XFCE in Linux Mint XFCE 13 (Don't be putoff by the title) psathiya1987 Linux - Software 5 10-07-2012 06:04 AM
LXer: Linux Mint Xfce - a new spin based on Debian Testing, plus questions answered by Mint guru Cle LXer Syndicated Linux News 0 04-14-2011 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration