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.