Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a simple home network with Windows 7 machines and Linux machines (Fedora 12 and 13). I'd like to be able to resolve the Linux machine names from the windows machine. For example:

-- Windows 7 ping mylinuxmachine

Currently this does not resolve. Any ideas?

Thank you,

Martin

share|improve this question

2 Answers 2

If you don't have a DNS server on your network (e.g. from your router), then you need to enable the Samba service and open up the NetBIOS ports (137-139) in your firewalls. The Fedora Firewall tools already have a default entry set up for this (may be described as something to do with "Windows File Sharing").

share|improve this answer
    
More specifically, NetBIOS name resolution is done by the nmbd daemon of Samba. (If you only need name resolution but don't want the Linux box to act as a SMB server, it is possible to disable smbd.) –  grawity May 27 '10 at 20:22

Rather than messing with Samba and the NetBIOS name service, I prefer to add the name to %SYSTEMDIR%\drivers\etc\hosts. The format and function of this file is identical to /etc/hosts on Linux. So you would add something like:

192.168.0.50  mylinuxmachine

Of course this works best if you assign static (or pseudo-static) IP addresses. By pseudo-static I mean the client uses DHCP, but the MAC address is stored in the DHCP server so that it always gives out the same IP address. You can still do this and have normal dynamic IP addresses for other hosts, just make sure to not assign any static addresses that fall in the dynamic range.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.