davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
320 stars 54 forks source link

dnsmasq fails to use port 53 #163

Closed mastin-zgz closed 3 years ago

mastin-zgz commented 3 years ago

Good morning!

Randomly, it stops me assigning ip in access point mode. dnsmasq: failed to create listening socket for port 53: Address already in use I have deactivated and prayed the systemd.resolved. I have applied the "systemctl mask dnsmasq.service" The error continues. If I look at who uses port 53, I get this.

udp 0 0 127.0.1.1:53 0.0.0.0:* 0 22265 3056/dnsmasq udp 0 0 0.0.0.0:5353 0.0.0.0:* 110 7432 486/avahi-daemon: r udp6 0 0 :::5353 :::* 110 7433 486/avahi-daemon: r

Is there any other option that may apply?

Thanks!

mastin-zgz commented 3 years ago

As an added information, I have a cable connected to eth0 that provides internet to the machine. I don't know if that could be the cause.

davesteele commented 3 years ago

"systemctl status" can tell you who launched the dnsmasq that is hogging the port.

eth0 is not a problem.

mastin-zgz commented 3 years ago

Reinstaling the S.O solved the problem.

Thanks!

Ataraxiall commented 3 years ago

Its happening to me, and is the networkManager

image

i edit the /etc/NetworkManager/NetworkManager.conf

and change

`[main] plugins=ifupdown,keyfile,ofono dns=dnsmasq

[ifupdown] managed=false`

by `[main] plugins=ifupdown,keyfile,ofono dns=8.8.8.8

[ifupdown] managed=false`

It works but i dont know if is bad change this dns option in NetworkManager.conf...

davesteele commented 3 years ago

The NetworkManager.conf file in the Comitup image:

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false
davesteele commented 3 years ago

I've added this to the "installing' wiki page.