[Samba] If a NetBIOS name used within a week is reused, an incorrect owner is returned.

CHIBA HIROSHI(千葉 洋) h_chiba_mxr at nec.com
Tue Apr 8 09:53:50 UTC 2025


Rowland,

Would it be possible for you to include information about the necessity of "net cache flush" in the official documentation? 

Best regards,
Hiroshi Chiba

-----Original Message-----
From: samba <samba-bounces at lists.samba.org> On Behalf Of Rowland Penny via samba
Sent: Tuesday, April 1, 2025 6:12 PM
To: samba at lists.samba.org
Cc: Rowland Penny <rpenny at samba.org>
Subject: Re: [Samba] If a NetBIOS name used within a week is reused, an incorrect owner is returned.

On Tue, 1 Apr 2025 08:41:07 +0000
CHIBA HIROSHI(千葉 洋) via samba <samba at lists.samba.org> wrote:

> Rowland,
> 
> Thank you for the information.
> 
> I would like to know when to execute net cache flush. Are there any 
> other necessary timings besides hostname changes?
> 
> We propose an amendment.
> I believe that if "net cache flush" is executed when Samba starts with 
> systemctl, the problem will not occur.
> 

If you are running Samba, there is normally no need to have the 'netbios name' parameter in the smb.conf file, Samba will use the computers hostname.

So, when you change a computers hostname and restart Samba or reload the Samba configuration with smbcontrol, you should also run 'net cache flush', this will remove any cached records.

How you do this is up to you, but because it isn't normal to keep changing a computers hostname, I suppose running 'net cache flush'
should be part of changing the hostname procedure.

Rowland

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


More information about the samba mailing list