Redhat Linux 9 and Windows XP name resolution issue
Posted on 2005-03-07
I have a Red Hat 9 Linux box setup as a WINS server. I have the following 2 lines in my /etc/samba/smb.conf file global section:
wins support = yes
name resolve order = wins hosts lmhosts bcast
I also have a Windows XP Prof machine with its WINS entry the ip address of the Red Hat box.
Problem....I cannot ping XP from Linux. I get the following error:
ping: unknown host office
office is the name of the XP machine, 192.168.100.2 is it's ip address (static).
redhat is the name of the Linux box, 192.168.100.13 is it's ip address (static).
I can ping Linux from XP, however.
I can perform an nmblookup for the machine names (on the linux box) and it seems to work, here are the results:
querying office on 192.168.100.255
Network settings seem to be ok on the Linux box. I can access the internet on both machines. I can also access shares on both machines. For example, the following command work fine:
smbclient -L office
added interface ip=192.168.100.13 bcast=192.168.100.255 nmask=255.255.255.0
Got a positive name query response from 127.0.0.1 (192.168.100.2)
I then type in the password and it shows me all the shares for "office" i.e. Windows XP machine.
The Redhat box can also ping itself fine and google.com fine.
I have spent some time on this. Please help.