URLs, Domains and Protocols

0 Conversations


The term URL either stands for Universal Resource Locator or Uniform Resource Locator. There's a bit of confusion as to which is correct, but it certainly stands for one of them. What a URL is, is a pointer to a resource on a network - the internet in particular. Usually you will see a URL look like this:


http://www.bbc.net.uk/h2g2/guide/


Let's take that apart, shall we?


http:


That's the protocol you're using, in this case it's http, but it could easily be https, ftp, nntp, gopher or in theory, a number of others. Then we have two forward slashes (//) to separate the protocol from the rest of our URL.


www.bbc.net.uk


This is the name of the host that we're looking it. Think of it as the name of the computer on which the web pages that we want are residing on. You can have lots of names for the same computer, for example, www.bbc.co.uk point to the same place as the .net.uk address.
The .net.uk part just shows that it's a domain registered for the UK, much like any .net address, but for the UK.


The bbc.net.uk part is the actual domain that the BBC own. You look these domains up and find out who owns them and where:

http://www.samspade.org/


The www part before the domain is actually the computer host name, or at least an alias of the computer.


Anyway, the next part is /h2g2/guide/


That's the path. That's telling the website exactly which pages or files you want to look at. If you don't specifiy a file within a directory, the website will try to find a default page for you, and send that to you. Usually these default pages are called index (as in index.html) or default (as in default.asp).


But let's not forget that URLs can be used for other protocols, for example:

news://msnews.microsoft.com/

ftp://ftp.cdrom.com/

telnet://snowplains.org:7777/


So, to recap on the main points:



bbc.net.uk is not a URL. It is either a hostname or a domain - and in fact it is both. You can point a domain to a computer without a hostname. In some cases, it may also be a company name - there are lots of dot com companies who use their domain as their company name. I won't mention any here as it might be viewed as advertising.



www.bbc.net.uk is also not a URL. It is a hostname. It is not a domain.

Further reading can be done at the following resources:


World Wide Web Consortium guidelines on addressing:
http://www.w3.org/Addressing/


Internet Engineering Task Force, RFC 1738
http://www.ietf.org/rfc/rfc1738.txt


Internic (Domain Names) FAQ
http://www.internic.net/faq.html


Bookmark on your Personal Space


Conversations About This Entry

There are no Conversations for this Entry

Entry

A569928

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more