LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-28-2003, 11:49 PM   #1
nishi_k_79
LQ Newbie
 
Registered: Apr 2003
Location: India
Posts: 10

Rep: Reputation: 0
Unknown Host <Linuxmachinename> / Unable to ping by host name


Hi,
We have windows 98,win2000 and Linux connected in a workgroup. I can ping my Linux machine by ip address but not by host name.In the Windows Explorer of win 98 if i type the ip adrress i can browse my Linux shares..and consequently if i type machinename i am able to browse my shares.This is as far as Win98 behaviour is concerned . But i am unable to browse by ipaddr in Window 2000.
Net View \\<Linuxmachine> in Windows 98 shows all shares whereas not the same in Win 2000.

Also, i am still not able to ping by name from either machines.
Any help greatly appreciated.I am already at my wits end !!
Also, Firewall is turned off.
 
Old 10-29-2003, 01:52 AM   #2
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
To ping by host name you need to have some kind of hostname resolution such as a DNS server to find out what the IP of that host is. Can you browse 98 shares from 2000?

I am not sure about your Windows 2000 problem as I have never had experience of Windows 2000. It is likely that 2000 doesnt have the necessary protocol installed. I think that the necessarry protocol is called "Microsoft File and Print Sharing" or something. Look in the network settings in Windows 98 and make sure you have the same installed on win 2000.

HTH
 
Old 10-30-2003, 04:34 AM   #3
nishi_k_79
LQ Newbie
 
Registered: Apr 2003
Location: India
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,
I have my DNS Resolution enabled.Also, i can browse 98 shares from 2000 and 2000 has Microsoft File and Print Sharing enabled.
Also, I can access the Internet from my Linux Machine (Gateway)..however if i try to access it from other machines setting Linux m/c as gateway ..i cannot access the Internet.
Running Traceroute shows following behaviour.
1) On Linux :
In 1 hop it reaches 192.168.0.X(external gateway)
2) On Win machine:
1st hop -> Linux machine
2nd hop -> Request Timed Out !!
 
Old 10-31-2003, 10:30 AM   #4
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
Internet domain names are a different namespace to NETBIOS names, or should be, windows sometimes mixes the two in troublesome ways.

>To ping by host name you need to have some kind of hostname resolution such as a DNS server to find out
>what the IP of that host is.

>I have my DNS Resolution enabled.
I expect you are sending DNS querys to your ISP's resolving nameservers. Your ISP's server knows nothing of the machines on your home LAN.

The easiest way is to add a line in the host file on every machine that maps your desired hostname to an ip address.

on 2k/XP the host files is somthing like
c:\winnt\system32\drivers\etc\hosts
 
Old 11-01-2003, 01:24 PM   #5
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
The same can be done in Linux with /etc/hosts

Format is:

domain this.is.the.ip
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ping: unknown host www.google.com tcma Linux - Networking 7 03-02-2012 11:47 PM
i m getting the error unknown host while im pinging with the host name gunjan thakkar Linux - General 2 12-14-2004 01:19 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
ping: unknown host in local intranet linuxjustin Linux - Networking 3 04-04-2004 02:03 PM
Resolver problem: ping localhost.localdomain gives Unknown host rmd Linux - Networking 0 11-06-2003 07:58 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration