jclaveau / docker-standalone-webdev-ci-stack

Made to be able to reinstall my OS, install Docker and start webdeveloping instantly
MIT License
1 stars 0 forks source link

Dnasmasq cannot start due to port 53 already in use #5

Open jclaveau opened 5 years ago

jclaveau commented 5 years ago

Sometimes, systemd blocks the port 53 endless (on Ubuntu 19.04 at least).

Short term solution

sudo systemd-resolve stop

A long term solution? https://medium.com/@niktrix/getting-rid-of-systemd-resolved-consuming-port-53-605f0234f32f

jclaveau commented 5 years ago

Possible solutions : https://unix.stackexchange.com/questions/304050/how-to-avoid-conflicts-between-dnsmasq-and-systemd-resolved

in /etc/systemd/resolved.conf

DNSStubListener=no

Then

sudo systemd-resolve restart And use dnsmasq as resolver.

Also bind-interfaces in dnsmasq config could fix this.

jclaveau commented 5 years ago

sudo netstat -anlp | grep -w LISTEN tcp 0 0 127.0.0.1:53 0.0.0.0: LISTEN 14413/docker-proxy
tcp 0 0 127.0.0.53:53 0.0.0.0:
LISTEN 11076/systemd-resol

Glad to bind-interfaces