Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a mixed environment of Windows 2000/XP computers and Linux computers, one machine is a SUSE 9.3/XP SP2 dual boot. I have a small LAN via a Linksys WRT54G router.
The Windows machines can resolve all hostnames on my LAN, whether it be a Linux or another Windows system. The Linux systems cannot. From linux I can browse via SAMBA and see all the shares, but ping returns 'unknown host name', as does telnet.
I do not have a DNS, nor am I using a hosts file. All systems are configured to use DHCP from the router.
Any idea how I can get host name resolution from Linux without the use of a DNS or static IP +hosts?
Neither windows not linux should be able to resolve hostnames without DNS or hosts files. (Well, you could use other exotic systems, but it's not likely).
Are you sure the router is not providing DNS for the windows systems?
Winbind handles resolution via Netbios names. I'm not sure that Gentoo has a separate package for it; it may be part of the Samba ebuild itself. Either way, once you have that installed, make sure the daemon itself is running. Then, change your hosts line in /etc/nsswitch.com to:
hosts: files dns wins
No, you are not required to run a WINS server for this to work. However, running one cannot possibly hurt. Try this out, and tell me if you have any more trouble.
Originally posted by mpeg4codec Winbind handles resolution via Netbios names. I'm not sure that Gentoo has a separate package for it; it may be part of the Samba ebuild itself. Either way, once you have that installed, make sure the daemon itself is running. Then, change your hosts line in /etc/nsswitch.com to:
hosts: files dns wins
No, you are not required to run a WINS server for this to work. However, running one cannot possibly hurt. Try this out, and tell me if you have any more trouble.
Genious, sheer genious. Name resolution works like a charm.
Thank you for your help on two of my issues now. Spot on for both.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.