Bug 13733 - Must restart winbind in order for WINS resolution to work
Summary: Must restart winbind in order for WINS resolution to work
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 4.9.4
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
Depends on:
Reported: 2018-12-31 04:21 UTC by m.kolesinski
Modified: 2018-12-31 04:21 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description m.kolesinski 2018-12-31 04:21:04 UTC
I am running Arch Linux with the 4.19.12-arch-1-ARCH kernel, and  samba --version yields 4.9.4.

The problem is this:
Whenever I reboot my machine, I cannot resolve WINS addresses (wbinfo -N <WINS name> returns "Could not lookup WINS by name <WINS name>"), until after I restart winbind (systemctl restart winbind), and then re-query the NAS I'm trying to reach (wbinfo -N <WINS name>).  For this same reason, my fstab which contains mount points for my NAS doesn't mount everything...after restarting winbind, I can run "mount -a" and the NAS mounts work.

So, it seems there's some sort of order dependency in winbind.  It's almost as if winbind starts too early, the fstab tries to mount (and fails), and winbind caches the unresolved address...restarting winbind recreates the host query cache.  It seems for failed queries, it should re-attempt to resolve the host via the network, and not the cache.  I have been having this issue for a few months now.  I have another Ubuntu machine that does not exhibit this symptom, but I haven't updated samba on that one in probably 6 months.