Hi. I moved from OMV 4 to OMV 5 recently and when I try to start the docker-compose file that worked for Pi-hole on OMV 4, I now get an error regarding the tcp port 53 used for DNS. The port is already in use by systemd-resolved. When I stop the service I can start the Pi-hole container, but whenever I restart the system, Pi-hole can not start. I tried disabling the systemd-resolv service, but then I dont get DNS resolutions anymore on the system. So what did change with OMV 5 and what can I do to free port 53?
Docker Pi-hole port 53 conflict
-
- OMV 5.x
- gelöst
- Linux13524
-
-
I tried disabling the systemd-resolv service, but then I dont get DNS resolutions anymore on the system.
You don't want to disable the service. Edit /etc/systemd/resolved.conf and change the Cache and DNSStubListener lines to no.
-
Thanks @ryecoaaron! I tried something similar before, but with the wrong config file (/etc/resolv.conf).
Do you know why this changed with OMV 5? -
Do you know why this changed with OMV 5?
This isn't an OMV change. It is a Debian change. Newer version of Debian means newer version of systemd and systemd-resolved is a newer feature.
-
Ah ok, I see. And would it be possible for OMV to change the settings of resolved on installation? Or add an option to the webinterface... Because with blocked DNS port there is no possibility to run any DNS server and I think this will be an issue for more people than just me ..
-
And would it be possible for OMV to change the settings of resolved on installation? Or add an option to the webinterface... Because with blocked DNS port there is no possibility to run any DNS server and I think this will be an issue for more people than just me ..
There is no option to disable this in the web interface. Most people don't run a dns server on their OMV install. And you could use macvlan so that the pihole container would use its own IP address avoiding this problem. For the few people that have this issue, I doubt Volker would add it but you can always ask - https://github.com/OpenMediaVault/openmediavault/issues
Otherwise, it is a two line cut&paste to fix it:
sudo sed -i "s/^#Cache=yes/Cache=no/g" /etc/systemd/resolved.conf
sudo sed -i "s/^#DNSStubListener=yes/DNSStubListener=no/g" /etc/systemd/resolved.confthen either reboot or restart systemd-resolved : systemctl restart systemd-resolved
-
Ok. Thank for explanation!
-
There is no option to disable this in the web interface. Most people don't run a dns server on their OMV install. And you could use macvlan so that the pihole container would use its own IP address avoiding this problem. For the few people that have this issue, I doubt Volker would add it but you can always ask - https://github.com/OpenMediaVault/openmediavault/issues
Otherwise, it is a two line cut&paste to fix it:
sudo sed -i "s/^#Cache=yes/Cache=no/g" /etc/systemd/resolved.conf
sudo sed -i "s/^#DNSStubListener=yes/DNSStubListener=no/g" /etc/systemd/resolved.confthen either reboot or restart systemd-resolved : systemctl restart systemd-resolved
Hallo ich, wärme den Beitrag mit einer Frage auf.
Das Problem mit dem Port 53 hatte ich auch und die im Zitat vorgeschlagene Lösung schaffte Abhilfe. Das möchte ich nun wieder rückgängig machen. Da ich den Befehl nicht komplett nachvollziehen kann, benötige ich hier Unterstützung.
Gruß toolted
-
Hallo ich, wärme den Beitrag mit einer Frage auf.
Das Problem mit dem Port 53 hatte ich auch und die im Zitat vorgeschlagene Lösung schaffte Abhilfe. Das möchte ich nun wieder rückgängig machen. Da ich den Befehl nicht komplett nachvollziehen kann, benötige ich hier Unterstützung.
Gruß tooltedWhy do you want to undo it?
-
-
And you could use macvlan
Hi, just testing a piHole container... and solved the port problem with your tips, thanks a lot!!!
I have a further question, may you detail a little more the use of macvlan?
Thanks in advice!
-
-
thanks!!!!!!
-
There is no option to disable this in the web interface. Most people don't run a dns server on their OMV install. And you could use macvlan so that the pihole container would use its own IP address avoiding this problem. For the few people that have this issue, I doubt Volker would add it but you can always ask - https://github.com/OpenMediaVault/openmediavault/issues
Otherwise, it is a two line cut&paste to fix it:
sudo sed -i "s/^#Cache=yes/Cache=no/g" /etc/systemd/resolved.conf
sudo sed -i "s/^#DNSStubListener=yes/DNSStubListener=no/g" /etc/systemd/resolved.confthen either reboot or restart systemd-resolved : systemctl restart systemd-resolved
Nailed it. Not only posted the fix but nailed the "just copy-pate this" side. Thank you.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!