LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2005, 08:57 PM   #1
VinnySem
Member
 
Registered: Oct 2004
Distribution: SUSE 10.0 Pro/Debian 3.1
Posts: 38

Rep: Reputation: 15
Windows/Linux Host Name Resolution


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?

Thanks.
 
Old 07-25-2005, 09:22 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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?
 
Old 07-26-2005, 08:39 AM   #3
mpeg4codec
Member
 
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109

Rep: Reputation: 15
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.
 
Old 07-26-2005, 09:24 PM   #4
VinnySem
Member
 
Registered: Oct 2004
Distribution: SUSE 10.0 Pro/Debian 3.1
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Host Or Windows Host ?? my-unix-dream Linux - General 2 05-18-2005 12:40 PM
Installing Windows on VMware (Host: Suse Linux 9.0) Kurti Linux - Software 2 02-17-2004 08:07 AM
Linux host name resolution ja_nch Linux - Networking 12 09-25-2003 03:49 PM
Networking Windows XP Host and Linux acalvin Linux - Networking 0 07-25-2003 07:50 AM
proxy windows + linux host seb_fou Linux - Networking 0 03-25-2003 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration