Bug 426133 - wins name resolution broken
Summary: wins name resolution broken
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 8
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Simo Sorce
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-18 18:58 UTC by John Stebbins
Modified: 2007-12-19 00:40 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-12-19 00:12:21 UTC
Type: ---
Embargoed:


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

Description John Stebbins 2007-12-18 18:58:10 UTC
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 19:24:16 UTC
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 19:51:12 UTC
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 192.168.13.255
name_query failed to find name smartstor

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

Please let me know if this is not sufficient information.


Comment 3 Simo Sorce 2007-12-18 20:28:29 UTC
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 22:56:25 UTC
Created attachment 289957 [details]
strace of ping

Comment 5 John Stebbins 2007-12-18 22:58:07 UTC
Created attachment 289958 [details]
dump during ping

Comment 6 John Stebbins 2007-12-18 23:02:35 UTC
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 192.168.13.72.  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-19 00:12:21 UTC
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 > 192.168.13.72: 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-19 00:40:41 UTC
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.