[Samba] Can nmbd dynamically update its host name when the DNS host name changes?

Jeremy Allison jra at samba.org
Thu Nov 6 12:10:38 MST 2014


On Thu, Nov 06, 2014 at 06:27:26PM +0000, Paul Walrath wrote:
> If "netbios name" is not specified in smb.conf, nmbd uses gethostname() to
> get the host's DNS host name on startup.  If some process changes the host's
> DNS host name while nmbd is running, nmbd does not recognize the change. 
> nmbd has to be restarted.  Is there currently any way to make nmbd
> dynamically update its cached host name, such as polling for changes to
> /proc/sys/kernel/hostname?

Could be done, but not a high priority whilst restarting
nmbd is easier.

Could be worse, on earlier versions of Windows you have
to reboot the machine :-).


More information about the samba mailing list