# 127.0.0.53 - Do I need it?

**URL:** <https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057>\
**Category:** Virtualmin\
**Created:** [May 31, 2024, 1:17pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057 "2024-05-31T13:17:52Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [May 31, 2024, 1:17pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/1 "2024-05-31T13:17:52Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Ubuntu Linux 22.04.4 |
| Webmin version | 2.111 |
| Usermin version | 2.010 |
| Virtualmin version | 7.10.0 |
| Theme version | 21.10 |
| Package updates | 8 package updates are available |

## Background

I am trying to get **dane** and **dane-only** to work for my smtp client and this 127.0.0.53 is getting in the way because it is the first in my list of DNS servers but does not support DNSSEC

## Research

Webmin → Networking → Network Configuration → Hostname and DNS Client → DNS servers:

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/f/f4b21e69e70b92b8d62e19c3d840eb988a1985ab.png)

> dig [sigok.verteiltesysteme.net](http://sigok.verteiltesysteme.net) +dnssec

This command does not show DNSSEC information and is using the server at 127.0.0.1

> dig [sigok.verteiltesysteme.net](http://sigok.verteiltesysteme.net) @10.0.0.1 +dnssec

This shows me all of the DNSSEC info

> resolvectl status

Gives the following code

```auto
Global
       Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub

Link 2 (ens3)
    Current Scopes: DNS
         Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 10.0.0.1
       DNS Servers: 127.0.0.53 10.0.0.1
        DNS Domain: example.com

```

## My Options

- make the DNS server order: 10.0.0.1, 127.0.0.53
- remove 127.0.0.53
- make `systemd-resolve` DNSSEC enabled

## The Question

What is 127.0.0.53 for, I know you send DNS queries to it and get responses (stub resolver?) but what is it’s purpose on my system and do I need it?

This is definately one for you linux guys. 😄

Thanks

---

<div class="post-metadata">

**Author:** ![ID10T](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/id10t/32/7895_2.png) [@ID10T](https://forum.virtualmin.com/u/ID10T)\
**Post date:** [May 31, 2024, 1:25pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/2 "2024-05-31T13:25:49Z")

</div>

I believe anything 127.x.x.x points to the host machine. I’ve never heard of it in DNS. It’s all loopback.

---

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [May 31, 2024, 1:31pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/3 "2024-05-31T13:31:30Z")

</div>

Removed because apparently this is not what OP was looking for.

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [May 31, 2024, 1:33pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/4 "2024-05-31T13:33:43Z")

</div>

> 127.0.0.53

- This is ubuntu default.
- Is it used to query the local DNS server?
- `systemd-resolve` is sat on this port.

> The fields you are pointing out should have external DNS servers such as google or cloudflare what ever your flavor…

Which fields do you mean? my pfsense router at 10.0.0.1 it a Full DNS resolver (but forwards up to Quad9)

---

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [May 31, 2024, 1:40pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/5 "2024-05-31T13:40:52Z")

</div>

Removed because apparently this is not what OP was looking for.

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [May 31, 2024, 1:42pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/6 "2024-05-31T13:42:23Z")

</div>

@cyberndt thanks

Why do Ubuntu add in `systemd-resolve` and 127.0.0.53?

In Windows you jusrt add the DNS server into your Network card and that is it.

---

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [May 31, 2024, 1:45pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/7 "2024-05-31T13:45:04Z")

</div>

Removed because apparently this is not what OP was looking for.

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [May 31, 2024, 1:51pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/8 "2024-05-31T13:51:49Z")

</div>

[https://blogs.gnome.org/mcatanzaro/2020/12/17/understanding-systemd-resolved-split-dns-and-vpn-configuration/](https://blogs.gnome.org/mcatanzaro/2020/12/17/understanding-systemd-resolved-split-dns-and-vpn-configuration/)

- You might have noticed that the rest of this blog post focused pretty much exclusively on desktop use cases. Your server is probably not using a VPN. It’s probably not using mDNS. It’s probably not expected to be able to resolve local hostnames.
- Conclusion: most servers don’t need split DNS! Servers _do_ benefit from systemd-resolved’s systemwide DNS cache, so running systemd-resolved on servers is still a good idea. But it’s not nearly as important for servers as it is for desktops.
- There are some disadvantages for servers as well. First, systemd-resolved is not intended to be used on DNS servers. If you’re running a DNS server, you’ll need to disable systemd-resolved before setting up BIND or Unbound instead.

Should the virtualmin installer of disabled `systemd-resolved` ?

---

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [May 31, 2024, 2:01pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/9 "2024-05-31T14:01:56Z")

</div>

Removed because apparently this is not what the OP was looking for.

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [June 1, 2024, 6:17am UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/10 "2024-06-01T06:17:19Z")

</div>

- `systemd-resolved`
  - is part of Ubuntu core and not Bind
  - is for apps and the command line to make DNS requests and uses `/etc/resolve.conf` for legacy apps.
  - is only bound on the loopback adapter at port 53 (i.e. 127.0.0.53:53, 127.0.0.1:53 etc…)

- `bind` receives and responds to DNS requests on specified network interfaces.
- 127.0.0.53 is only needed in your network card for the following reasons:
  - you have got DNS servers specified in `/etc/systemd/resolved.conf`
  - you require SplitDNS
  - you want to use the benefits of the `systemd-resolved` DNS cache

- if 127.0.0.53 is specified in the network card I assume `systemd-resolved` ignores this to prevent an infinite loop
- 127.0.0.53 is specified in my network card by default by Ubuntu when I set the server up.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [June 1, 2024, 8:28am UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/11 "2024-06-01T08:28:47Z")

</div>

I’d probably recommend you not waste time on DNSSEC. It doesn’t really provide any useful security beyond what TLS provides, and TLS is a _lot_ easier to setup and maintain.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [June 1, 2024, 8:33am UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/12 "2024-06-01T08:33:33Z")

</div>

You know more than everyone who has answered in this thread so far (other than me, maybe). 😉

You’re correct, this is the default resolver configuration on modern systems. It isn’t weird, it isn’t unusual, it’s not a mystery. It’s usually systemd-resolved, as you note. That’s a caching resolver intended for local use.

Asking if you “need it” is a question only you can answer. You need it if you don’t want to do some work to change the way resolution works on your system. There are many tools that can provide this service (local caching DNS resolution), and you don’t even really need caching local DNS on a server, in a lot of cases, since you’re not going to be doing a lot of time-sensitive DNS requests. Since it’s not a desktop, most things that need DNS are not interactive…a few ms to go out to 8.8.8.8 or 1.1.1.1 probably isn’t going to be noticeable. (Though if you use a lot of APIs that are involved in interactive services, then you should have local caching DNS.)

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [June 1, 2024, 8:59am UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/13 "2024-06-01T08:59:24Z")

</div>

My main purpose of this is so I can use DANE on Postfix which requires DNSSEC verification.

Postfix is doing local DNS requests for DNSSEC verification but because `systemd-resolved` is not configured to pass DNSSEC information (by default), DANE verification will always fail so I cannot take advantage of TLSA records on remote domains.

In postfix (as a SMTP client) if I use `dane-only` (mandatory DANE) emails will always fail when DNSSEC fails or does not get a response, but in the case of `dane` (opportunistic DANE) which is the default, most peoples emails (definitely on Ubuntu) will fail when a no successful DNSSEC response is received, but fall back to a standard email delivery so in this case noone will actually see an erro r unless they read the logs.

I am currently writing up my notes on this before testing and making a descision on the best way to implement successful DNSSEC locally, there are a few ways.

---

<div class="post-metadata">

**Author:** ![cyberndt](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/a4c791/32.png) [@cyberndt](https://forum.virtualmin.com/u/cyberndt)\
**Post date:** [June 1, 2024, 2:17pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/14 "2024-06-01T14:17:00Z")

</div>

> [@Joe](#):
>
> You know more than everyone who has answered in this thread so far ( **other than me, maybe** )

Apparently! Good thing you still have a day job 🙂

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [June 9, 2024, 2:17pm UTC](https://forum.virtualmin.com/t/127-0-0-53-do-i-need-it/127057/15 "2024-06-09T14:17:32Z")

</div>

Closed on June 9, 2024, 2:17pm UTC

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
