Issues with http:// addresses

I’m having issues connecting to sites if I include the http:// in the web address. This is becoming an issue because zypper URI’s need the http:// address. When I try updating via zypper I get a bad media attach point. To make sure I was connecting to the internet I tried pinging google what I found was if I ping google.com or www.google.com it works fine. If I ping http://www.google.com I get the following error

ping: unknown host http://www.google.com

Any ideas on how to resolve this?

Something is confused. That’s the wrong argument for “ping”. The “http://” is part of a web address, but not part of an Internet address. A web address includes the protocol (http) to use, while an internet address doesn’t.


ping www.google.com

should work.

On Thu, 11 Sep 2014 16:26:01 +0000, rbprat01 wrote:

> To make sure I was connecting to the internet I tried pinging google
> what I found was if I ping google.com or www.google.com it works fine.
> If I ping http://www.google.com I get the following error
>
> ping: unknown host http://www.google.com
>
> Any ideas on how to resolve this?

There’s nothing to resolve - that’s the expected output from ping when
you give it an invalid hostname, as nrickert points out.

A URL is not a hostname.

Please post the output you get from your zypper command instead, as
that’s where your actual problem lies - not in the connectivity (at
least, not based on what you’ve told us so far). :slight_smile:

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2014-09-11 18:26, rbprat01 wrote:
>
> I’m having issues connecting to sites if I include the http:// in the
> web address. This is becoming an issue because zypper URI’s need the
> http:// address. When I try updating via zypper I get a bad media
> attach point. To make sure I was connecting to the internet I tried
> pinging google what I found was if I ping google.com or www.google.com
> it works fine. If I ping http://www.google.com I get the following
> error
>
> ping: unknown host http://www.google.com

Of course, you can not ping “http://www.google.com”. You have to ping
www.google.com”. The server name is “www.google.com”.
http://www.google.com” is a web address.

Just paste here a sample zypper run, with “–verbose” in it, from
initial command prompt, to last command prompt, in a single mouse sweep,
and please do so inside code tags (the ‘#’ button in the forum editor).
See photo

It is preferable to see what the commands have to say about things, than
describing them :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Some clarification for newbies here…

When you parse the string “http://www.google.com

That string actually means
http:// use the http protocol to connect to something
google.com is the fully qualified domain name of the destination
www. is the designated website address for the specified domain

So, when you are pinging something, you’re sending ICMP packets to probe a destination, and so shouldn’t be doing something like specifying connecting using a protocol.

That is why “ping http://www.google.com” returns an error but “ping www.google.com” should return a valid result.

Now, to your original post.
Zypper is a package management utility that can use many types of protocols, and http is just one. So, when you configure a repo address you <do> need to specify a protocol that is acceptable for that repo’s server and typically http is acceptable.

My recommendation for testing a repo address is not to use ping which in any case would only test for the server responding to ping and would not inform whether there might be an application level problem.

Instead, just paste the URL into a web browser to get a more relevant result.

HTH,
TSU

On 2014-09-12 19:26, tsu2 wrote:
>
> Some clarification for newbies here…
>
> When you parse the string “http://www.google.com
>
> That string actually means
> http:// use the http protocol to connect to something
> google.com is the fully qualified domain name of the destination
> www. is the designated website address for the specified domain

aka the “host”. That is, www.google.com is the full name of the machine.
Only that in google’s case, it is not a single machine… but that is
transparent to us.

:slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)