Score:0

Newly installed dnsmasq not able to start

ph flag

I currently have a CentOS machine at my home working as a server (very small server). Since CentOS7 is doing some strange things soon, I decided to move to Ubuntu. I do have a little familiarity with Ubuntu but it appears not enough.

I wanted the GUI interface and since this is a small server, I installed Ubuntu desktop 22.0.4. I also installed a few services like net-tools etc.

I wanted the first service that I am running on my old CentOS machine to be my local DNS so I installed dnsmasq and get the following error:

× dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
     Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2023-01-01 09:43:29 MST; 19ms ago
    Process: 59075 ExecStartPre=/etc/init.d/dnsmasq checkconfig (code=exited, status=0/SUCCESS)
    Process: 59083 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=2)
        CPU: 28ms

Jan 01 09:43:28 XXXXXXX systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Jan 01 09:43:29 XXXXXXX dnsmasq[59083]: dnsmasq: failed to create listening socket for port 53: Address already in use
Jan 01 09:43:29 XXXXXXX dnsmasq[59083]: failed to create listening socket for port 53: Address already in use
Jan 01 09:43:29 XXXXXXX dnsmasq[59083]: FAILED to start up
Jan 01 09:43:29 XXXXXXX systemd[1]: dnsmasq.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Jan 01 09:43:29 XXXXXXX systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
Jan 01 09:43:29 XXXXXXX systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.

When I do a journalctl -xeu dnsmasq.service, I get the following information:

Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit dnsmasq.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 2.
Jan 01 09:54:42 XXXXXXX dnsmasq[80424]: failed to create listening socket for port 53: Address already in use
Jan 01 09:54:42 XXXXXXX systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit dnsmasq.service has entered the 'failed' state with result 'exit-code'.
Jan 01 09:54:42 XXXXXXX dnsmasq[80424]: FAILED to start up
Jan 01 09:54:42 XXXXXXX systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
░░ Subject: A start job for unit dnsmasq.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit dnsmasq.service has finished with a failure.
░░
░░ The job identifier is 23394 and the job result is failed.

Can someone point me in the right direction? I don't see anything running on port 53 but, I've been known to miss things.

Thanks in advance for all your help... Also, thins is a brand new clean Ubuntu install with just a couple of apps I added.

Thanks, Brian

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.