HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 19. FIRST WEBSITE 204


although that is not recommended. Each one is “owned” by the next-shorter
domain name, by dropping the front element.


Do not be confused about who owns the subdomain.


Exam Question 338(p.356): Who or what owns byuh.doncolton.com?
Acceptable Answer:doncolton.com


19.3.3 DNS: Domain to IP Address


The domain name serves two purposes in the actual mechanics of retrieving
webpages.


The first purpose is to identify the computerthat has the webpage
we want. This computer is called a server. It is operated by your webhost.
And the only way to reach this computer is by knowing its address.


Addresses on the Internet are called IP addresses. IP stands for Internet
Protocol. The most common type ofIP addressis a version-4 address,
also calledIPv4. An IPv4 address consists of four numbers separated by
dots. For example, 12.34.56.78 is an IP address. There is a newer type of
IP address gaining popularity. It is calledIPv6(version six).


Your registrar provides the basic Domain Name Service (DNS) that converts
a domain name into an IP address. Your account with the registrar gives
you the ability to specify that IP address.


Once we have the IP address, we can send a request to the correct computer.


The second purpose is to identify the document rootof the website
within that computer. It is common for one computer to provide storage for
dozens or even hundreds of websites. Frequently they all share the same IP
address, but they each have their owndocument root.


Your webhost provides acontrol panel, such ascPanel, that helps you
attach a domain name to a document root. The document root tells which
folder (directory) holds your webpages.


19.4 The cPanel Control Panel


Once you have hosting, you need to set up your website and add some
content. But how do you set it up? How do you add content?

Free download pdf