Paul Walrath
2014-Nov-06 18:27 UTC
[Samba] Can nmbd dynamically update its host name when the DNS host name changes?
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?
Jeremy Allison
2014-Nov-06 19:10 UTC
[Samba] Can nmbd dynamically update its host name when the DNS host name changes?
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 :-).