Bug 426133 - wins name resolution broken
wins name resolution broken
Product: Fedora
Classification: Fedora
Component: samba (Show other bugs)
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Simo Sorce
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-12-18 13:58 EST by John Stebbins
Modified: 2007-12-18 19:40 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-12-18 19:12:21 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
strace of ping (21.71 KB, text/plain)
2007-12-18 17:56 EST, John Stebbins
no flags Details
dump during ping (9.10 KB, text/plain)
2007-12-18 17:58 EST, John Stebbins
no flags Details

  None (edit)
Description John Stebbins 2007-12-18 13:58:10 EST
Description of problem:
Can not resolve host names through wins.
ping and nmblookup fail to resolve netbios names.

Version-Release number of selected component (if applicable):
samba-common 3.0.28
samba-client 3.0.28

How reproducible:
ping wins-name
nmblookup wins-name

Steps to Reproduce:
1. Edit nsswitch.conf to add "wins" to hosts line
2. ping a wins host
3. nmblookup a wins host
Actual results:
Failure to resolve name to address

Expected results:
Expected name to resolve

Additional info:
Works fine on fedora 6 & 7
Comment 1 Simo Sorce 2007-12-18 14:24:16 EST
I need details on your configurations (smb.conf, nsswitch.conf) and the exact
commands you use to test this.
Also a level 10 log of nmbd operations would be appreciated.
Comment 2 John Stebbins 2007-12-18 14:51:12 EST
smb.conf is default supplied with distribution.  Samba service is not enabled.
nmbd is not running.
I only made the modification noted above to nsswitch.conf (added "wins" to hosts
line).  Otherwise it is default supplied with the distribution.

Exact commands:
# ping smartstor
ping: unknown host smartstor
# nmblookup smartstor
querying smartstor on
name_query failed to find name smartstor

These commands work on identically configured fc6 and fc7 systems on the same

Please let me know if this is not sufficient information.
Comment 3 Simo Sorce 2007-12-18 15:28:29 EST
So you have not set a "wins server =" line in smb.conf ?
Are you trying to just do broadcast resolution ?
Can you strace ping and tcpdump the network to see the network traffic ?
Comment 4 John Stebbins 2007-12-18 17:56:25 EST
Created attachment 289957 [details]
strace of ping
Comment 5 John Stebbins 2007-12-18 17:58:07 EST
Created attachment 289958 [details]
dump during ping
Comment 6 John Stebbins 2007-12-18 18:02:35 EST
Correct, wins server is not set in smb.conf
Broadcast resolution.
Attachments for strace and tcpdump above.

In strace, you can see select timeout after the netbios request is made.

In tcpdump, you can see a netbios response from  This is the
address of the machine I am attempting to ping.  For some reason, ping isn't
seeing this response?
Comment 7 Simo Sorce 2007-12-18 19:12:21 EST
The packet trace shows your machine firewall configuration is blocking the reply
and sending back a reject.

14:43:47.172194 IP johns-encoder.jetheaddev.com > ICMP host
johns-encoder.jetheaddev.com unreachable - admin prohibited, length 98

turn off your firewall or enable UDP replies for NBT packets on port 137 and > 1024
Comment 8 John Stebbins 2007-12-18 19:40:41 EST
Well now, don't I feel stupid! Thanks.

The firewall config has a service for samba which if allowed, fixes the problem.

However, in the process of attempting to fix my firewall, I think I found
another bug.  system-config-firewall.py attempts to load
/usr/share/system-config-firewall/system-config-firewall_48.png.  This file does
not exist (I checked the rpm, its not in there).  Exits with error.  There is a
file /usr/share/icons/hicolor/48x48/apps/system-config-firewall.png.  I copied
this file to the expected location to work around the problem.

Note You need to log in before you can comment on or make changes to this bug.