You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DNSMasq is not restarted after a node FQDN change #8359
In the Nodes page, change the FQDN of that node, e.g. from node1.example.org to node2.example.org.
Look at the node logs for the fqdn-changed event handler.
Expected behavior
The DNSMasq service on the node whose FQDN changed restarts, so it serves the new host name.
Actual behavior
The event handler of every DNSMasq instance fails with KeyError: 'node_id' and DNSMasq is not restarted. The fqdn-changed handler is a link to the hosts-changed one, which reads the node_id attribute, but the core fqdn-changed event carries the node ID in the node attribute.
Use DNSMasq 1.3.5-dev.1, which includes NethServer/ns8-dnsmasq#164. The cluster should have at least two nodes, with DNSMasq installed on the node you rename.
To update an existing instance (replace dnsmasq1 with the real module ID):
api-cli run update-module --data '{"module_url":"ghcr.io/nethserver/dnsmasq:1.3.5-dev.1","instances":["dnsmasq1"],"force":true}'
On the node with DNSMasq, note when the service last started: systemctl show -p ActiveEnterTimestamp dnsmasq1.
In the Nodes page, change the FQDN of that node, e.g. from node1.example.org to node2.example.org.
Run the command from step 1 again: the start time must be newer.
Check the logs: journalctl -t agent@dnsmasq1 --since -10min must show Handler of node/<ID>/event/fqdn-changed exited with status "completed", with no KeyError.
If another node runs DNSMasq too, its service must not restart.
Tested DNSMasq 1.3.5-dev.1 on a two-node cluster with core 3.25.1: a Rocky Linux 9 leader and a Debian 13 worker, each running one DNSMasq instance. The instance on the worker was configured with DNS only; the instance on the leader was left unconfigured.
Changed the FQDN of the worker node, e.g. from node1.example.org to node2.example.org.
The DNSMasq service on the worker restarted, and its fqdn-changed handler exited with status "completed" without any KeyError.
On the leader, the handler completed too and its DNSMasq service was not started.
Activity
DavidePrincipi commentedon Nov 23, 2026
Fix: NethServer/ns8-dnsmasq#164
DavidePrincipi commentedon Nov 23, 2026
Test case
Use DNSMasq
1.3.5-dev.1, which includes NethServer/ns8-dnsmasq#164. The cluster should have at least two nodes, with DNSMasq installed on the node you rename.To update an existing instance (replace
dnsmasq1with the real module ID):systemctl show -p ActiveEnterTimestamp dnsmasq1.node1.example.orgtonode2.example.org.journalctl -t agent@dnsmasq1 --since -10minmust showHandler of node/<ID>/event/fqdn-changed exited with status "completed", with noKeyError.DavidePrincipi commentedon Nov 23, 2026
VERIFIED
Tested DNSMasq
1.3.5-dev.1on a two-node cluster with core 3.25.1: a Rocky Linux 9 leader and a Debian 13 worker, each running one DNSMasq instance. The instance on the worker was configured with DNS only; the instance on the leader was left unconfigured.node1.example.orgtonode2.example.org.fqdn-changedhandler exited with status "completed" without anyKeyError.Result: OK.
DavidePrincipi commentedon Nov 23, 2026
Released in DNSMasq 1.3.5: https://github.com/NethServer/ns8-dnsmasq/releases/tag/1.3.5