ubuntudnsportdnsmasq

Problems with DNSMasq (Port 53 error, Ubuntu 18)


I'm creating an apache web server in Ubuntu Desktop 18 (via VirtualBox). I just installed DNSmasq, but the application is not working properly.

These are the errors:

Errors

I also checked the ports, but I dont even know which process is using my port 53:

Netstat

I would really appreciate if you help me out.

EDIT

lsof

P.D.: In the network section, in VirtualBox, i'm using Bridged Adapter, maybe it's relevant...


Solution

  • systemd-resolver is already binding to port 53 hence dnsmasq can not use it.

    If you are sure you want dnsmasq you will first need to disable this systemd service like that:

     systemctl stop systemd-resolver
     systemctl disable systemd-resolver
    

    Then starting dnsmasq should work.