Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
09-17-2004, 12:32 PM
|
#1
|
Member
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415
Rep:
|
ping doesnt work
Hi all,
I was working on a utility which plays a sound when the internet connection is disconnected, well I though I would ping a site, until I get an error, then provoke the sound function. But then I found out that ping doesnt work at all although all other services work.
Even when I'm connected it says
root@darkstar:~# ping http://www.google.com
ping: unknown host http://www.google.com
It says the same when I'm not connected, Whats the problem
|
|
|
09-17-2004, 12:41 PM
|
#2
|
Member
Registered: Sep 2004
Location: So Cal
Distribution: Slackware 12
Posts: 60
Rep:
|
try pinging google by google.com instead of http://www.google.com
|
|
|
09-17-2004, 02:12 PM
|
#3
|
Member
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415
Original Poster
Rep:
|
root@darkstar:~# ping google.com
PING google.com (216.239.39.99) 56(84) bytes of data.
it worked! But why, doesnt it accept the full address
|
|
|
09-17-2004, 02:23 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Because http is not part of an address, it's a protocol
that you instruct the browser to use for contacting an
actual ip address ... similariliy, if you tried
ping www.google.com/linux it wouldn't work either,
because /linux is just a reference to a location on
the server with the IP address www.google.com
The example is a bit far fetched, but think of the address
( www.xxx.com) as a TV set, http and https are different
access-methods and the bits after the first / are the channels.
Cheers,
Tink
Last edited by Tinkster; 09-17-2004 at 02:27 PM.
|
|
|
09-17-2004, 02:37 PM
|
#5
|
Member
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415
Original Poster
Rep:
|
Quote:
The example is a bit far fetched, but think of the address
(www.xxx.com) as a TV set, http and https are different
access-methods and the bits after the first / are the channels.
|
I aint that nooB...
|
|
|
09-17-2004, 02:45 PM
|
#6
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
Originally posted by irfanhab
Quote:
But why, doesnt it accept the full address
|
I aint that nooB...
|
Sorry....
it wasn't that obvious ...
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 02:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|