The nmbd
logs of a linux samba4 domain member server are filled with lines like:
query_name_response: Multiple (2) responses received for a query on subnet 192.168.1.54 for name ADOMAIN<1d>.
This response was from IP 192.168.1.19, reporting an IP address of 192.168.1.19.
where:
- 192.168.1.54 is the IP of the member server
- 192.168.1.19 is the IP of the PDC
ADOMAIN
is a SAMBA NT-style domain
Those lines appears every 5 minutes.
What is going on?
Random steps taken:
rm /var/cache/samba/browse.dat
;- double check
interfaces
broadcast configuration (it is correct); systemctl restart nmbd
(a evergreen classic).
It could be because of a host in the same physical network which have two interfaces. The broadcast query coming in is replied to both of them by your nmbd. Please see this 17 years old answer at https://thr3ads.net/samba/2000/08/1675707-query_name_response-Multiple-responses-received
For me, the answer was to be found here: https://forums.freebsd.org/threads/samba-multiple-2-responses-two-freebsd-systems-on-my-network.65759/
And specifically the last sentence
However, I don't use an NT domain to log on to. I actually use nothing more than a workgroup. the "prefered master = no" was the one I had to change. I had it set to 'yes' on 1 host. Changed to 'no' and restarted samba. Everything kept working after that and the messages stopped.