winbind using wrong netbios service code in queries
0
votes
1
answer
321
views
For the past day, I have been trying unsuccessfully to let my Ubuntu VM be able to resolve NetBIOS names on the local network, to find some non-computer devices (Printers, special barcode machines, etc..) that don't have a fixed IP.
At first, I assumed I am failing to configure the usage of winbind/wins for resolving, even though I had read every webpage that ever mentioned nsswitch.conf, and I was sure my configuration should be correct.
running
nmblookup printername
returns a successful result that looks like:
x.x.x.x printername
And this was my first clue, the service type. I fired up wireshark, and tried to ping printername
, and I saw a NetBIOS broadcast asking for printername
, to which no one replied.
I stopped the winbindd service, and run it manually in foreground using:
sudo winbindd -F -S -d 10
then tried the same ping, and I saw winbindd attempting the same erroneous query with instead of .
Why is this happening? Where can this be configured?
EDIT: Closing this question as this is hardcoded in the source.
Digging through the code, I found the function in
winbindd_wins_byname.c, harcoded as such:
`subreq = resolve_wins_send(state, ev, state->request->data.winsreq,
0x20);`
Asked by Waleed Hamra
(377 rep)
May 30, 2017, 10:59 AM
Last activity: Jun 5, 2017, 10:01 AM
Last activity: Jun 5, 2017, 10:01 AM