LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-23-2024, 11:31 AM   #1
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Question My DNS - 127.0.0.53


I should know this but I don't grasp this area entirely even tho' I understand what its for

My DNS according to dig is 127.0.0.53

/etc/resolve.conf confirms this : nameserver 127.0.0.53

What exactly is this looking at?

I want to change to a malware filtering dns which I believe Quad9 does amongst others, again any tips would be appreciated.
 
Old 01-23-2024, 12:30 PM   #2
michaelsavage
Member
 
Registered: Apr 2019
Distribution: Linux Mint
Posts: 59

Rep: Reputation: 11
My understanding is the resolv.conf file is for connecting local clients to the internal DNS stub resolver of systemd-resolved.
If you type resolvectl status you will see your external DNS
 
Old 01-23-2024, 01:00 PM   #3
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
That address/port is probably 127.0.0.1:53 or similar.
53 is the default port for non-encrypted DNS lookups, 127.0.0.1 is an internal (local) IP address.
 
Old 01-23-2024, 04:50 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I’m sure that you misread it. “Universally,” the local gateway address (“your router”) is 127.0.0.1, and it provides DNS services as well as DHCP. Jeremy is undoubtedly right.

Edit: “Never mind. The right answer is just below.

Last edited by sundialsvcs; 01-23-2024 at 05:23 PM.
 
Old 01-23-2024, 05:01 PM   #5
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 364

Rep: Reputation: 171Reputation: 171
Possibly relevant:
Why does /etc/resolv.conf point at 127.0.0.53?
 
2 members found this post helpful.
Old 01-23-2024, 05:08 PM   #6
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by michaelsavage View Post
My understanding is the resolv.conf file is for connecting local clients to the internal DNS stub resolver of systemd-resolved.
If you type resolvectl status you will see your external DNS
Cheers, this is it

Current Scopes: DNS
DefaultRoute setting: yes
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Current DNS Server: 149.112.112.112
DNS Servers: 192.168.1.1
9.9.9.9
149.112.112.112
DNS Domain: ~.
lan


Or at least part of it, I know I set the dns to 9.9.9.9 as an experiment a while ago, but I can't recall how I made it permanent.

I need to do some more research...
 
Old 01-23-2024, 05:09 PM   #7
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by metaed View Post
This is what I want to know, I don't recall setting it ever.
 
Old 01-23-2024, 05:21 PM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
@metaed: “You solved it!” Pointing out yet-another thing that “poor old me” had not yet known. (But I’m quite used to this …)

Last edited by sundialsvcs; 01-23-2024 at 05:25 PM.
 
Old 01-23-2024, 05:52 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,706

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
127.0.0.1 is the local loopback adapter that exists on just about every networked enabled device. This allows you to run a network service without needing a physical network adapter. cups typically runs only on localhost by default as well as most database servers like mysql and postgresql. The local loopback network is 127.0.0.0/8 which has valid addresses from 127.0.0.1 - 127.255.255.254

The first line in your /etc/resolv.conf file probably is something like:
Quote:
# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
As posted systemd-resolved is a stub resolver and as posted does listen on 127.0.0.53. Mint automatically installs and configures systemd-resolved. It is called a local DNS stub listener and I believe one of its features is a DNS cache as well as name resolution for LAN networks without a DNS. The stub resolver forwards requests to your router (192.168.1.1) which forwards requests to your ISP DNS 149.112.112.112

You might of added the 9.9.9.9 DNS address in Network Manager.
 
Old 01-24-2024, 09:32 AM   #10
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026

Original Poster
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Thumbs up

Quote:
Originally Posted by michaelk View Post
127.0.0.1 is the local loopback adapter that exists on just about every networked enabled device. This allows you to run a network service without needing a physical network adapter. cups typically runs only on localhost by default as well as most database servers like mysql and postgresql. The local loopback network is 127.0.0.0/8 which has valid addresses from 127.0.0.1 - 127.255.255.254

The first line in your /etc/resolv.conf file probably is something like:


As posted systemd-resolved is a stub resolver and as posted does listen on 127.0.0.53. Mint automatically installs and configures systemd-resolved. It is called a local DNS stub listener and I believe one of its features is a DNS cache as well as name resolution for LAN networks without a DNS. The stub resolver forwards requests to your router (192.168.1.1) which forwards requests to your ISP DNS 149.112.112.112

You might of added the 9.9.9.9 DNS address in Network Manager.
Absolutely correct, my memory is just getting so bad, I must make more comprehensive notes
Attached Thumbnails
Click image for larger version

Name:	Network.png
Views:	25
Size:	41.6 KB
ID:	42465  
 
  


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
dns traffic from 127.0.0.1 to 127.0.1.1 is normal situation? liks Linux - Networking 6 01-22-2016 02:40 AM
can't use 127.0.0.1 or 127.0.0.2 Mufasa Linux - Software 2 08-22-2008 08:35 AM
Sendmail : relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refuse macadam Linux - Software 0 09-23-2007 02:44 PM
mailer=relay, pri=30008, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Con pralhad Linux - Software 1 08-11-2007 10:49 AM
DSN: Data format error & relay=[127.0.0.1] [127.0.0.1] calmbomb Linux - Software 0 11-07-2004 03:24 PM

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

All times are GMT -5. The time now is 11:22 AM.

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