There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Missing /etc/systemd/resolved.conf file

I wanted to install Pi-Hole on my server and noticed that port 53 is already in use by something.

Apparently it is in use by systemd-resolved:


<span style="color:#323232;">~$ sudo lsof -i -P -n | grep LISTEN
</span><span style="color:#323232;">[...]
</span><span style="color:#323232;">systemd-r    799 systemd-resolve   18u  IPv4   7018      0t0  TCP 127.0.0.53:53 (LISTEN)
</span><span style="color:#323232;">systemd-r    799 systemd-resolve   20u  IPv4   7020      0t0  TCP 127.0.0.54:53 (LISTEN)
</span><span style="color:#323232;">[...]
</span>

And the solution should be to edit /etc/systemd/resolved.conf by changing #DNSStubListener=yes to DNSStubListener=no according to this post I found. But the /etc/systemd/resolved.conf doesn’t exist on my server.

I’ve tried sudo dnf install /etc/systemd/resolved.conf which did nothing other than telling me that systemd-resolved is already installed of course. Rebooting also didn’t work. I don’t know what else I could try.

I’m running Fedora Server.

Is there another way to stop systemd-resolved from listening on port 53? If not how do I fix my missing .conf file?

BCsven ,

When I installed it it suggested turning that service off onvthe host. If you search online there are many suggestions on shutting off that stuff so 53 is left for pihole

dohpaz42 , (edited )
@dohpaz42@lemmy.world avatar

Here is a good primer on the configuration files and their possible locations: www.freedesktop.org/…/resolved.conf.html

Edit: be careful because this is your domain name lookup you’re messing with. 😊

just_another_person ,

The service is using the default config, which you can override by creating this file.

View the package contents to find out where the default config is located.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines