Rowland Penny
2023-Apr-01 21:25 UTC
[Samba] Standalone - Multiple (2) responses received for a query on subnet ...
On 01/04/2023 22:10, David C. Rankin via samba wrote:> Current Version: samba 4.18.1 > > All, > > ? I have several **standalone** servers on a subnet, and for quite some > time, I have received log messages in other standalone machines about > multiple responses from the WINS server. There is only a single WINS > server on the network (as it has been since samba 2.02 or earlier). The > WINS server is 192.168.6.14. The log message that is received for > example in other wins clients is: > > Mar 31 16:54:30 2pi nmbd[38711]: [2023/03/31 16:54:30.530875,? 0] > ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) > Mar 31 16:54:30 2pi nmbd[38711]:?? query_name_response: Multiple (2) > responses received for a query on subnet 192.168.6.111 for name > RLFPLLC<1d>. > Mar 31 16:54:30 2pi nmbd[38711]:?? This response was from IP > 192.168.6.14, reporting an IP address of 192.168.6.14. > > The smb.conf for the wins server is: > > # Global parameters > [global] > ??????? dns proxy = No > ??????? domain master = Yes > ??????? log file = /var/log/samba/%m.log > ??????? max log size = 50 > ??????? printcap name = /etc/printcap > ??????? security = USER > ??????? server string = %h Samba %v > ??????? wins support = Yes > ??????? workgroup = RLFPLLC > ??????? idmap config * : backend = tdb > ??????? hosts allow = 192.168.6. 192.168.7. 127. 66.76.63.60 > ??????? vfs objects = fruit streams_xattr > > And for the wins clients: > > [global] > ??????? dns proxy = No > ??????? local master = No > ??????? log file = /var/log/samba/%m.log > ??????? max log size = 500 > ??????? printcap name = /etc/printcap > ??????? security = USER > ??????? server string = %h Samba %v > ??????? wins server = 192.168.6.14 > ??????? workgroup = RLFPLLC > ??????? idmap config * : backend = tdb > ??????? hosts allow = 192.168.6. 192.168.7. 127. 66.76.63.60 > ??????? vfs objects = fruit streams_xattr > > I have two primary questions: > > ? (1) Why am I getting the multiple response log messages? > > ? (2) Is WINS even necessary anymore in the Win10 world? Should I just > remove all WINS settings and the domain = master that forces browse > master elections? Seems like all of that should have gone the way of the > dinosaur when smb1 was turned off by default? Any other settings I > should remove if this is the case? > >As far as 1 is concerned, not really sure, but as far as 2 is concerned, well the answer is probably no, you really need SMBv1 for WINS and smbv1 is now turned off by default everywhere. You will probably be better using Avahi for Linux and wsdd for Windows. Rowland
David C. Rankin
2023-Apr-01 22:10 UTC
[Samba] Standalone - Multiple (2) responses received for a query on subnet ...
On 4/1/23 16:25, Rowland Penny via samba wrote:> As far as 1 is concerned, not really sure, but as far as 2 is concerned, well > the answer is probably no, you really need SMBv1 for WINS and smbv1 is now > turned off by default everywhere. You will probably be better using Avahi for > Linux and wsdd for Windows. >Thank you Rowland! That's really the question -- I DON'T need smb1. So in that case do I just disable all the Wins and Browse List stuff? Do I even need nmb at that point? (or will it help with the Avahi and wsdd resolution?) Basically, I have a network with 4 Linux boxes providing samba shares and then a dozen or so Win10 boxes and iPhones (accessing smb shares via the Files app) and the 192.168.6.14 (the wins server) also provides DNS via bind and ISC dhcpd with dynamic updates to DNS -- so name resolution isn't an issue. I could just experiment turning wins off and see what connectivity/access is like. Is there an updated doc on setting up standalone without smb1 somewhere? The crux of the matter is I'm not an Avahi or wsdd expert. When smb1 was enabled, there was clear documentation for configuring smb.conf to handle wins server, wins client, browse-master and election rules. It seems like since smb1 was disabled, there isn't any documentation about what that meant for existing configurations that had used wins, etc.. So if the answer is -- you can just comment out all the wins and domain master settings, I'm good with that, I've just never been fond of guessing. -- David C. Rankin, J.D.,P.E.
Seemingly Similar Threads
- Standalone - Multiple (2) responses received for a query on subnet ...
- Standalone - Multiple (2) responses received for a query on subnet ...
- Browsing shares of a server
- Browsing shares of a server
- What is needed to allow Network Browsing of the file server in Windows