DNSMASQ is failing (again) / no yunohost update possible

Hello :wave: ,

I have a small Kimsufi server with Yunohost 4.3.4. stable

I have once again problem with dnsmask as you can see:

 admin@sub1:~$ sudo systemctl status dnsmasq.service  
â—Ź 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 Thu 2021-12-02 21:35:45 UTC; 2min 13s ago  
 Process: 560 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)  
 Process: 633 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=1/FAILURE)   
  
Dec 02 21:35:38 sub1.mondomain.com systemd\[1\]: Starting dnsmasq - A lightweight DHCP and caching DNS server...  
Dec 02 21:35:41 sub1.mondomain.com dnsmasq\[560\]: dnsmasq: vérification de syntaxe OK.  
Dec 02 21:35:45 sub1.mondomain.com dnsmasq\[633\]: dnsmasq: mauvaise optionĂ  la ligne 31 de /etc/dnsmasq.d/sub2.mondomain.com  
Dec 02 21:35:45 sub1.mondomain.com dnsmasq\[633\]: mauvaise optionĂ  la ligne 31 de /etc/dnsmasq.d/sub2.mondomain.com   
Dec 02 21:35:45 sub1.mondomain.com systemd\[1\]: dnsmasq.service: Control process exited, code=exited, status=1/FAILURE   
Dec 02 21:35:45 sub1.mondomain.com dnsmasq\[633\]: IMPOSSIBLE de démarrer   
Dec 02 21:35:45 sub1.mondomain.com systemd\[1\]: dnsmasq.service: Failed with result 'exit-code'.   
Dec 02 21:35:45 sub1.mondomain.com systemd\[1\]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.

The consequences is that my server can’t connect to other website (for instance to update Yunohost or to install new applications), Synapse works well but Nextcloud fails for some operation (can’t update application or connect to external imap server).

I already had problem with bind9 ( I already faced this issue when installing for the first time Yunohost of the Debian provided by Kimsufi.) so I have a look there :

admin@sub1:~$ systemctl status bind9.service  
â—Ź bind9.service - LSB: Start and stop bind9  
  Loaded: loaded (/etc/init.d/bind9; generated)  
  Active: failed (Result: exit-code) since Thu 2021-12-02 21:35:44 UTC; 23h ago  
    Docs: man:systemd-sysv-generator(8)  
 Process: 608 ExecStart=/etc/init.d/bind9 start (code=exited, status=1/FAILURE)

I try o remove a package that doesn’t exist… but I still don’t understand how the service exist when the package is not installed. A mystery for me.

 admin@sub1:~$ sudo apt-get remove bind9  
Reading package lists... Done  
Building dependency tree          
Reading state information... Done  
Package 'bind9' is not installed, so not removed  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.admin@sub1:~$ sudo apt-get remove bind9
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'bind9' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So let’s have a look at the file that seems to cause problem to dnsmasq

admin@sub1:~$ nano /etc/dnsmasq.d/sub2.mondomain.com

interface-name=sub2.mondomain.com,bond0  
interface-name=xmpp-upload.sub2.mondomain.com,bond0  
  
interface-name=sub2.mondomain.com,bonding_masters  
interface-name=xmpp-upload.sub2.mondomain.com,bonding_masters  
  
interface-name=sub2.mondomain.com,dummy0  
interface-name=xmpp-upload.sub2.mondomain.com,dummy0  
  
interface-name=sub2.mondomain.com,eno0  
interface-name=xmpp-upload.sub2.mondomain.com,eno0  
  
interface-name=sub2.mondomain.com,gre0  
interface-name=xmpp-upload.sub2.mondomain.com,gre0  
  
interface-name=sub2.mondomain.com,gretap0  
interface-name=xmpp-upload.sub2.mondomain.com,gretap0  
  
interface-name=sub2.mondomain.com,ifb0  
interface-name=xmpp-upload.sub2.mondomain.com,ifb0  
  
interface-name=sub2.mondomain.com,ifb1  
interface-name=xmpp-upload.sub2.mondomain.com,ifb1  
  
interface-name=sub2.mondomain.com,ip6tnl0  
interface-name=xmpp-upload.sub2.mondomain.com,ip6tnl0  
  
interface-name=sub2.mondomain.com,lo  
sit0  
interface-name=xmpp-upload.sub2.mondomain.com,lo  
sit0  
  
interface-name=sub2.mondomain.com,teql0  
interface-name=xmpp-upload.sub2.mondomain.com,teql0  
  
interface-name=sub2.mondomain.com,tunl0  
interface-name=xmpp-upload.sub2.mondomain.com,tunl0  
  
  
txt-record=sub2.mondomain.com,"v=spf1 mx a -all"  
mx-host=sub2.mondomain.com,sub2.mondomain.com,5  
srv-host=\_xmpp-client.\_tcp.sub2.mondomain.com,sub2.mondomain.com,5222,0,5  
srv-host=\_xmpp-server.\_tcp.sub2.mondomain.com,sub2.mondomain.com,5269,0,5

All my dnsmasq records for all my subdomain look the same. Are they OK?

I tried also

yunohost tools regen-conf dnsmasq –force

But with no change of the situation.

Could you help me to find a solution for my server to be ablel to update again?

Thanks in advance :hugs:

You have not the last number after the point (4.3.4.2 should fix your issue) ?

I am wondering what are all those network interface ? Do you know ?

bond0  bonding_masters dummy0 eno0 gre0 gretap0 ifb0 ifb1 ip6tnl0 lo sit0 teql0 tunl0

To fix your issue you can remove sit0 at the line 31 and 33 of your file.

Indeed I was in 4.3.4. and it is updating to 4.3.4.1.

I removed sit0 from all domains and it worked :tada:
Thanks you very much for you time and advises :bowing_man:

But to be honest, I have no idea why there are all those network interfaces.
I installed a debian on my kimsufi, installed yunohost on the top following official recommendation.
And since then, I have made only official update.
I have not done any modification by myself, I am not skillful enough :wink:

Should I make some modification to these network interface?

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