Can only connect to samba share from win 7 machine using IP address and not hostname

view story

http://askubuntu.com – I am a beginner when it comes to Linux, and have recently put together a media server, holding all my movies, running ubuntu 12.04. After following tutorials and forums i can successfully ping, by hostname and ip, my windows desktop box and my media server ubuntu box fine, and vice versa. I have configured samba to set up a share called Movies on my media server. I have set up an account on samba using my linux username, windows username with my linux password. My ubuntu box is now visible on my network tree on my win7 box, as is the Movies share. however when i try to access the Movies sha (HowTos)