Front-end/Internet

Domain Name

metamong 2023. 3. 27.

What is a Domain Name?

A domain name is a unique, easy-to-remember address used to access websites, such as ‘google.com’, and ‘facebook.com’. Users can connect to websites using domain names thanks to the Domain Name System (DNS).

 

Domain names are a key part of the Internet infrastructure. They provide a human-readable address for any web server available on the Internet.

 

Any Internet-connected computer can be reached through a public IP Address, either an IPv4 address (e.g. 173.194.121.32) or an IPv6 address (e.g., 2027:0da8:8b73:0000:0000:8a2e:0370:1337).

 

Computers can handle such addresses easily, but people have a hard time finding out who is running the server or what service the website offers. IP addresses are hard to remember and might change over time.

To solve all those problems we use human-readable addresses called domain names.

Structure of Domain Names

A domain name has a simple structure made of several parts (it might be one part only, two, three…), separated by dots and read from right to left:

Each of those parts provides specific information about the whole domain name.

1) TLD(Top-Level Domain)

TLDs tell users the general purpose of the service behind the domain name. The most generic TLDs (.com, .org, .net) don't require web services to meet any particular criteria, but some TLDs enforce stricter policies so it is clearer what their purpose is. For example:

 

- Local TLDs such as .us, .fr, or .se can require the service to be provided in a given language or hosted in a certain country — they are supposed to indicate a resource in a particular language or country.

- TLDs containing .gov are only allowed to be used by government departments.

- The .edu TLD is only for use by educational and academic institutions.

 

TLDs can contain special as well as latin characters. A TLD's maximum length is 63 characters, although most are around 2–3.

 

The full list of TLDs

 

There are two types of domain names. The first is generic top-level domains (gTLDs) such as .com, .edu, .org, and .gov. Because the internet originated in the United States, these domains tend to be most popular there. Authority over these domains is usually delegated to private organizations.

 

There are also country-code top-level domains (ccTLDs). Each country in the world has its own 2-letter code. For example, the ccTLD for the United States is .us, Great Britain’s is .uk, and China’s is .cn. These domains are administered by authorities in each country. Some ccTLDs, such as .tv (for the island nation of Tuvalu) and .io (the British Indian Ocean Territory), have become popular for use outside of their home countries.

2) Label(or component)

The labels are what follow the TLD. A label is a case-insensitive character sequence anywhere from one to sixty-three characters in length, containing only the letters A through Z, digits 0 through 9, and the - character (which may not be the first or last character in the label). a, 97, and hello-strange-person-16-how-are-you are all examples of valid labels.

 

The label located right before the TLD is also called a Secondary Level Domain (SLD).

 

A domain name can have many labels (or components). It is not mandatory nor necessary to have 3 labels to form a domain name. For instance, www.inf.ed.ac.uk is a valid domain name. For any domain you control (e.g. mozilla.org), you can create "subdomains" with different content located at each, like developer.mozilla.org, iot.mozilla.org, or bugzilla.mozilla.org.

 

To the left of the TLD is the second-level domain (2LD) and if there is anything to the left of the 2LD, it is called the third-level domain (3LD). Let’s look at a couple of examples:

 

For Google’s US domain name, ‘google.com’:

 

- 'com' is the TLD (most general)

- 'google' is the 2LD (most specific)

 

But for Google UK’s domain name, ‘google.co.uk’:

 

- '.com' is the TLD (most general)

- '.co'* is the 2LD

- 'google' is the 3LD (most specific)

Buying & Getting a Domain Name

Q. Who owns a domain name?

You cannot "buy a domain name". This is so that unused domain names eventually become available to be used again by someone else. If every domain name was bought, the web would quickly fill up with unused domain names that were locked and couldn't be used by anyone.

 

Instead, you pay for the right to use a domain name for one or more years. You can renew your right, and your renewal has priority over other people's applications. But you never own the domain name.

 

Companies called registrars use domain name registries to keep track of technical and administrative information connecting you to your domain name.

Q. Find an available domain name?

To find out whether a given domain name is available,

 

Go to a domain name registrar's website. Most of them provide a "whois" service that tells you whether a domain name is available.

 

Alternatively, if you use a system with a built-in shell, type a whois command into it, as shown here for mozilla.org:

$ whois mozilla.org
Domain Name:MOZILLA.ORG
Domain ID: D1409563-LROR
Creation Date: 1998-01-24T05:00:00Z
Updated Date: 2013-12-08T01:16:57Z
Registry Expiry Date: 2015-01-23T05:00:00Z
Sponsoring Registrar:MarkMonitor Inc. (R37-LROR)
Sponsoring Registrar IANA ID: 292
WHOIS Server:
Referral URL:
Domain Status: clientDeleteProhibited
Domain Status: clientTransferProhibited
Domain Status: clientUpdateProhibited
Registrant ID:mmr-33684
Registrant Name:DNS Admin
Registrant Organization:Mozilla Foundation
Registrant Street: 650 Castro St Ste 300
Registrant City:Mountain View
Registrant State/Province:CA
Registrant Postal Code:94041
Registrant Country:US
Registrant Phone:+1.6509030800

As you can see, I can't register mozilla.org because the Mozilla Foundation has already registered it.

 

On the other hand, let's see if I could register afunkydomainname.org:

$ whois afunkydomainname.org
NOT FOUND

As you can see, the domain does not exist in the whois database (at the time of writing), so we could ask to register it. Good to know!

Q. How to Get a Domain Name?

The process is quite straightforward:

 

① Go to a registrar's website.

② Usually there is a prominent "Get a domain name" call to action. Click on it.

③ Fill out the form with all required details. Make sure, especially, that you have not misspelled your desired domain name. Once it's paid for, it's too late!

④ The registrar will let you know when the domain name is properly registered. Within a few hours, all DNS servers will have received your DNS information.

DNS refreshing

DNS databases are stored on every DNS server worldwide, and all these servers refer to a few special servers called "authoritative name servers" or "top-level DNS servers" — these are like the boss servers that manage the system.

 

Whenever your registrar creates or updates any information for a given domain, the information must be refreshed in every DNS database. Each DNS server that knows about a given domain stores the information for some time before it is automatically invalidated and then refreshed (the DNS server queries an authoritative server and fetches the updated information from it). Thus, it takes some time for DNS servers that know about this domain name to get the up-to-date information.

DNS Request

As we already saw, when you want to display a webpage in your browser it's easier to type a domain name than an IP address. Let's take a look at the process:

 

Type mozilla.org in your browser's location bar.

Your browser asks your computer if it already recognizes the IP address identified by this domain name (using a local DNS cache). If it does, the name is translated to the IP address and the browser negotiates contents with the web server. End of story.

If your computer does not know which IP is behind the mozilla.org name, it goes on to ask a DNS server, whose job is precisely to tell your computer which IP address matches each registered domain name. (see DNS posting in detail)

④ Now that the computer knows the requested IP address, your browser can negotiate contents with the web server.

Other Questions

Q. What is the difference between a domain name and a URL?

A uniform resource locator (URL), sometimes called a web address, contains the domain name of a site as well as other information, including the protocol and the path. For example, in the URL ‘https://cloudflare.com/learning/’, ‘cloudflare.com’ is the domain name, while ‘https’ is the protocol and ‘/learning/’ is the path to a specific page on the website.


* source 1) https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Web_mechanics/What_is_a_domain_name

* source 2) https://www.cloudflare.com/en-gb/learning/dns/glossary/what-is-a-domain-name/

* source 3) https://www.youtube.com/watch?v=Y4cRx19nhJk 

* source 4 vox) https://www.vox.com/2014/6/16/18076282/the-internet

 

 

'Front-end > Internet' 카테고리의 다른 글

HTTPS(수정중)  (0) 2023.04.12
Web Hosting  (0) 2023.03.27
DNS(Domain Name System)  (0) 2023.03.22
HTTP(수정중)  (0) 2023.03.20
Packets & Protocols  (0) 2023.03.14

댓글