# Dnsmasq keep failing #2

**URL:** https://forum.yunohost.org/t/dnsmasq-keep-failing-2/17241
**Category:** Support
**Tags:** french
**Created:** [September 21, 2021, 8:44am UTC](https://forum.yunohost.org/t/dnsmasq-keep-failing-2/17241 "2021-09-21T08:44:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![arjz](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@arjz](https://forum.yunohost.org/u/arjz)
#### Post date: [September 21, 2021, 8:44am UTC](https://forum.yunohost.org/t/dnsmasq-keep-failing-2/17241/1 "2021-09-21T08:44:00Z")

</div>

Hello,  
I’m using YunoHost version 4.2.8.3 (stable) and from two days I’m facing with a dns issue.

I’m using Adguard Home installed on a dedicated VM with DHCP and DNS activated.  
For the yunohost server it’s static @IP with the DNS from the router (livebox) of the service provider and not adguard home.

I have check similar issue on this forum and founded this topic: [Dnsmasq keep failing](https://forum.yunohost.org/t/dnsmasq-keep-failing/12675)

But it seems that Adguard Home is installed on the same computer here and mine is not.

There are the error message that I have on my yunohost:

### Description of my issue

```auto
root@xxxx:~# journalctl -u dnsmasq -n 100 --no-hostname --no-pager
-- Logs begin at Tue 2021-09-21 09:18:08 CEST, end at Tue 2021-09-21 10:21:40 CEST. --
sept. 21 09:18:09 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
sept. 21 09:18:09 dnsmasq[556]: dnsmasq: vérification de syntaxe OK.
sept. 21 09:18:09 dnsmasq[574]: dnsmasq: impossible de créer une socket d'écoute pour port 53 : Adresse déjà utilisée
sept. 21 09:18:09 dnsmasq[574]: impossible de créer une socket d'écoute pour port 53 : Adresse déjà utilisée
sept. 21 09:18:09 systemd[1]: dnsmasq.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
sept. 21 09:18:09 dnsmasq[574]: IMPOSSIBLE de démarrer
sept. 21 09:18:09 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
sept. 21 09:18:09 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
root@arjz:~# sudo netstat -tnlp | grep :53
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 444/systemd-resolve
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 444/systemd-resolve
tcp6 0 0 :::5355 :::* LISTEN 444/systemd-resolve
root@xxxx:~#

```

I receive also lot of email from yunohost dyndns update cron like that every 10 minutes:

```auto
Cron <root@arjz> : YunoHost DynDNS update; sleep $((RANDOM%60)); test -e /var/run/moulinette_yunohost.lock || yunohost dyndns update >> /dev/null

Failed to resolve dyndns.yunohost.org

```

There is my /etc/network/interfaces:

```auto
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens18
iface ens18 inet static
address 192.168.111.x (@IP yunohost)
netmask 255.255.255.0
gateway 192.168.111.x (@IP router)
dns-nameservers 192.168.111.x (@IP router)

```

/run/resolvconf/resolv.conf

```auto
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.111.x (@IP router)
nameserver 127.0.0.53

```

/run/resolvconf/interface/systemd-resolved

```auto
nameserver 127.0.0.53

```

/run/resolvconf/interface/ens18.inet

```auto
nameserver 192.168.111.x (@IP router)

```

If someone can help, it will be greatly appreciate  
Thank you  
arj

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [September 21, 2021, 11:12am UTC](https://forum.yunohost.org/t/dnsmasq-keep-failing-2/17241/2 "2021-09-21T11:12:47Z")

</div>

Sounds like systemd-resolved took over the dns resolution …

Should be fixed with:

```auto
systemctl disable systemd-resolved --now
systemctl restart dnsmasq

```

---

<div class="post-metadata">

### Author: ![arjz](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@arjz](https://forum.yunohost.org/u/arjz)
#### Post date: [September 21, 2021, 12:00pm UTC](https://forum.yunohost.org/t/dnsmasq-keep-failing-2/17241/3 "2021-09-21T12:00:04Z")

</div>

Thank you aleks, yes you are right.  
I don’t know why systemd-resolved has been enabled but now dyndns and dnsmasq are ok.

I’ll close this topic.  
Thanks

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [October 21, 2021, 12:00pm UTC](https://forum.yunohost.org/t/dnsmasq-keep-failing-2/17241/4 "2021-10-21T12:00:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
