Question : ping a samba server

When I ping a samba server using (Ping -a 10.10.10.10) I get a reply saying:
Ping CompSamba [10.10.10.10] with 32 bytes of data:
and the all four replies
...
...

I also can ping by name CompSamba.

But when I nslookup 10.10.10.10 I receive:
Mydnsservername.mydomain.com can't find 10.10.10.10 : Non-Existant domain

when I nslookup CompSamba I receive:
Mydnsservername.mydomain.com can't find CompSamba : Non-Existant domain

I looked on the host file and didn't find the Compsamba or its IP address, I also looked in  the DNS and didn't find it.

I wonder how come it's resolving when pingged this way: (Ping -a 10.10.10.10) and when pingged this way: (Ping CompSamba), and it's not in DNS or host file.
Note:I don't have access to samba server to verify the smb file, but I am not sure if it's samba related.

Thanks

Answer : ping a samba server

when you are pinging CompSamba you are not using DNS but instead you are using NetBIOS to resolve the name.  This will work fine if the computer you are pinging from and the Samba server are both on the smae subnet.  To get DNS to resolve you will need to manually add a DNS entry to the DNS namespace.
 
Random Solutions  
 
programming4us programming4us