Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Beginner’s Guide: What is a Domain Name and How Do Domains Work?

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

We are often asked by beginners: what is a domain name, and how do domains work? If you are a beginner, then you may have heard that you need a domain to make a website.

However, many beginners confuse domain names with a website or website hosting services. If you are just starting out, then all these different terms may sound too technical.

In this beginner’s guide, we will answer what a domain name is and how domains work. The goal is to help you understand and choose the right domain name for your website.

Domain names and how do they work?

Here is a quick overview of the topics we will cover in this guide:

What Is a Domain Name?

A domain name is the address of your website that internet users type in the browser URL bar to visit your website.

In simple terms, if your website was a house, then your domain name would be its address.

A more detailed explanation, though, is that the internet is a giant network of computers connected to each other through a global network of cables. Each computer on this network can communicate with other computers.

To identify them, each computer is assigned an IP address. It is a series of numbers that identify a particular computer on the internet. A typical IP address looks like this:

66.249.66.1

Now, an IP address like this is quite difficult to remember. Imagine if you had to use such numbers to visit your favorite websites.

Domain names were invented to solve this problem.

Now, if you want to visit a website, then you don’t need to enter a long string of numbers.

Instead, you can visit it by typing an easy-to-remember domain name in your browser’s address bar. For example, wpbeginner.com.

How Do Domain Names Actually Work?

To understand how domain names actually work, we will take a look at what happens when you enter it in your browser.

How domains work

When you enter a domain name in your web browser, it first sends a request to a global network of servers that form the Domain Name System (DNS).

These servers then look up the name servers or DNS servers associated with the domain and forward the request to those name servers.

For example, if your website is hosted on Bluehost, then its name server information will have DNS records like this:

ns1.bluehost.com
ns2.bluehost.com

These name servers are computers managed by your hosting company. Your hosting provider will forward your request to the computer where your website is stored.

This computer is called a web server. It has special software installed (Apache and Nginx are two popular web server software).

The web server now fetches the web page and pieces of information associated with it.

Finally, it then sends this data back to the user’s browser.

How Is Domain Name Different From a Website and Web Hosting?

web hosting

A website is made up of files like HTML pages, website builder software, images, and more. It gives you and your business an online presence.

If the domain name is the web address of your website, then web hosting is the home where your website lives.

This is the actual computer where your website’s files are stored. Such computers are called servers, and they are offered as a service by hosting companies.

To create your website, you need both a domain name and web hosting. You need both of them to make any kind of website, whether it’s a personal, small business website, or an eCommerce store.

However, it’s important to remember that they are two separate services, and you can buy them from two different companies.

Now you may be wondering, how would it work if you bought them from two separate companies?

You just need to edit your domain name settings and enter the Name Server information provided by your hosting company. Name Server information defines where to send user requests for your domain name.

We recommend getting both your domain name and hosting from the same company. This allows you to easily manage them under the same account.

For more details, see our guide on the difference between domain names and web hosting.

Different Types of Domain Names

Domain names are available in many different extensions. The most popular one is .com. There are many other options like .org, .net, .tv, .info, .io, and more. However, it’s generally a good idea to use a .com domain extension.

Let’s take a more detailed look at the different types of domain names available.

Top Level Domain – TLD

Top-level domains or TLDs are generic domain extensions that are listed at the highest level in the domain name system. They are also referred to as gTLD or generic top-level domains.

There are hundreds of TLDs, but the most popular ones are .com, .org, and .net. Other TLDs are lesser known, for example, .biz, .club, .info, .agency, and many more.

Country Code Top Level Domain – ccTLD

Country code top-level domains or ccTLD are country-specific domain names that end with country code extensions like .uk for the United Kingdom, .de for Germany, and .in for India.

They are used by websites that want to target audiences in a specific country.

Sponsored Top Level Domain – sTLD

Sponsored top-level domain or sTLD is a category of TLDs that has a sponsor representing a specific community served by the domain extension.

For example, .edu for education-related organizations, .gov for the United States government, .mil for the United States military, and more.

New Generic Top Level Domain – New gTLD

New generic top level domain or New gTLD helps you claim the most suitable domain name that represents your brand on both sides of the dots.

For example, clothing rental company Armoire added the extension .style to enhance their brand story with the domain name “Armoire.style”. Similarly, if John runs a small delivery business, he could find a match with a descriptive extension, like .delivery. So, his domain name can be “John.delivery”.

That means with new gTLD, you don’t have to settle for a mediocre domain name that is both available and affordable. Instead, you could establish your online identity by choosing a perfect domain name name with extensions, like .fashion, .travel, .investments, and more.

Second Level Domain – SLD

The second-level domain generally refers to the name that comes before the top-level domain or TLD.

For instance, in wpbeginner.com, the wpbeginner is the second-level domain, while .com is the TLD.

Domain registries use the SLDs to create a hierarchy for their ccTLD.

For instance, the .au ccTLD, which represents Australia, has com.au, net.au, and more. In this case, the .com is not the Top Level Domain but a sTLD of .au TLD.

Similarly, in the .co.uk domains, .co is the SLD of the .uk TLD.

Who Is Responsible for the Domain Name System?

Internet Corporation for Assigned Names and Numbers (ICANN) manages the domain names system. It is a non-profit organization that creates and implements the policies for domain names.

ICANN gives permission to companies called Domain Name Registrars to sell domain names. These domain registrars are allowed to make changes to the domain name registry on your behalf.

Domain name registrars can sell domain names, manage their records, renewals, and transfers to other registrars.

As a domain name owner, you are responsible for telling the registrar where to send requests. You are also responsible for renewing your domain registration.

How to Choose a Domain Name for Your Website

Choosing domain name

There are currently more than 359.8 million registered domain names (source: Verisign), and thousands more get registered each day.

This means that all the good ones are already registered or will be registered very soon. This puts a lot of pressure on new users to come up with a domain idea for their website.

We’ve created a free AI-powered business name generator tool that helps you come up with creative company name ideas and check domain name availability status to help you save time.

Here are some quick tips to help you choose a domain name for your next website.

  • Stick with a .com domain name as it is the most popular, easy to remember, and easy to promote.
  • Make sure it is shorter and easy to remember.
  • Make it easy to pronounce and spell.
  • Do not use numbers or hyphens.
  • Use domain name generators to come up with clever domain name ideas.

For more tips and practical advice, see our guide on how to choose the best domain name for your website.

How to Buy a Domain Name

You can buy your desired domain names from one of the many domain name registrars. A domain name registration typically costs 14.99 per year. Some popular domain name companies are:

However, buying a domain does not automatically give you a hosting service. For that, you will need a website hosting account as well.

Many WordPress hosting companies offer domain registration services as well. This allows you to manage both services under one account, and you also don’t need to worry about changing name server settings for your domain.

We recommend using Bluehost. They are offering WPBeginner users a free domain name and a huge discount on hosting. Basically, you can get started for $1.99/month.

Frequently Asked Questions About Domain Names

Over the years, we have helped thousands of beginners start their first websites. We have heard almost every possible question about domain names that you can think of.

Following are the answers to some of the most commonly asked questions about domain names.

1. What is a subdomain?

A subdomain is basically a child domain under the main domain name. For example, videos.wpbeginner.com is a subdomain of wpbeginner.com. Subdomains are sometimes also called third-level domain names.

Once you register a domain, you have permission to create subdomains for it by yourself.

Websites commonly use subdomains to create child sites under the same domain name.

For example, a business website can create a subdomain for their blog or their online store as store.example.com or blog.example.com

2. Can I cancel my registration of a domain name?

Some domain registrars allow domain owners to cancel their domain registration at any time. If you cancel your registration, it will become available for others to register.

Other domain name registrars allow you to simply let your domain registration expire.

In most cases, you will not get any refund for the domain registration. However, some domain registrars do have refund policies, which you may want to discuss with them before canceling your registration.

If you don’t have the auto-renew feature turned on, then your domain name will simply expire after the registration period you have paid for.

3. Can I move my website to a different domain name?

Yes, you can. You can point your domain name to your hosting server. You can also keep both domain names pointing to the same website.

However, search engines consider it duplicate content, and that will affect your search rankings.

We have a step-by-step guide on how to properly move a website to a new domain name and set up redirects so you don’t hurt your SEO.

4. Can I sell a domain name?

Yes, you can sell your domain name. Domain names are like real estate for the web. There is a huge demand for good brandable custom domain names.

Trading domain names is a multi-million-dollar industry. Since domain names are so cheap, smart entrepreneurs are always looking for great domain name ideas to get their hands on.

If you want to sell your domain name, then there are many marketplace websites like Sedo, GoDaddy, and others where you can list your domain for sale.

Popular registrars like Domain.com and Network Solutions also let you buy premium domains right from their domain search feature.

Related: See the best GoDaddy alternatives for buying domains.

5. What is domain privacy? Do I need it?

ICANN requires people registering domain names to provide an email, physical address, phone number, and other personal information to be made available publicly.

Domain Privacy is a separate add-on service sold by domain registrars. It allows you to show proxy information instead of your actual personal info.

You don’t need to buy domain privacy if you don’t want to. However, if you are concerned about privacy, then you can buy this service for a small cost.

6. Can I find out who owns a domain name?

You can use the Whois lookup tool to find information about who owns a domain name. However, if the domain name is using domain privacy, then you’ll see the proxy information provided by their registrar.

7. Can I buy more than one domain name?

Yes, you can buy as many domain names as you like.

8. What is www? Is it a part of domain names?

WWW is the abbreviation for the World Wide Web. In the early days of the internet, some experts started using it to indicate that something was a web address.

However, it is not a requirement, and most websites don’t use www in their website addresses anymore.

Technically, www is a subdomain of your main domain name. Anything that comes before your main domain and is followed by a dot is considered a subdomain, like videos.wpbeginner.com.

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

URL is short for Uniform Resource Locator. It is a web address that takes you to a specific page or file on a website.

A domain name alone locates a particular website. If you enter a domain name alone (e.g. wpbeginner.com) in your browser, it will convert it into a URL like https://wpbeginner.com and take you to the homepage of the website associated with that domain name.

Each page or file you see on the internet has a URL associated with it. For instance, you can see the URL for this page in your browser’s address bar above.

10. What is the difference between a domain name and a website?

A website comprises files like HTML pages, website builder software, images, and more. It gives you and your business an online presence.

If the domain name is the web address of your website, then web hosting is the home where your website lives.

11. What is HTTP and HTTPS?

HTTP refers to Hypertext Transfer Protocol. It is the internet protocol technology used to access information on the web.

However, it is succeeded by the HTTPS, which indicates Secure Hypertext Transfer Protocol. HTTPS indicates that a website is using SSL, which is a secure protocol to transmit data on the internet.

See our article on why your website should use HTTPS.

11. Where can I learn more about making websites?

Right here. WPBeginner is the world’s largest WordPress resource site for beginners. We have tutorials, step-by-step guides, and videos created specifically for beginner users.

Here are some of the helpful resources you’ll find on WPBeginner (All of them are completely free):

We hope this article helped you learn what is a domain name and how domains work. You may also want to see our list of best free domain name generators to find cool ideas for your next domain name.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

43 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Mrteesurez says

    This is an eye opener.
    I would like to share this post for people to learn how domain really works. you have crafted it in an understandable way for a novice.
    In FAQ 8, you talked about Www as a subdomain, does that mean I can have different websites, wp installation, on both www. and example.com ?

  3. Dennis Muthomi says

    I love how wpbegginer takes a complex topic and makes it understandable for non-technical people like me.
    I’ve always found the concept of domains somehow confusing. This guide finally made it click for me.
    Thank you for this is invaluable resource :-)

  4. Ayanda Temitayo says

    Wao… thank you for this eye opener. So I can actually trade a domain name. I heard it from a friend that you can buy domain and sell it for later to a big company. Now your post confirmed it that it is like a real estate sale.

    I just want to add to it that when you are buying domain, get a domain with a very short name, easy to remember and not more than 2 syllabic words.

    This post is educative and full of insight. Thanks again Wpbeginner

  5. Peter Iriogbe says

    Thank you so much for the breakdown of this article. I now gain more insight on how to choose a better domain name than I had learned before. I will try my best to follow this new method when I want to buy my new domain name this coming year.

  6. May Marsters says

    Thank you. Clarity is what I have been looking for as a new beginner doing things the digital way.

  7. Cherry Lou Roselyn Reyes says

    Thanks for all the information and for making it easy to understand…love it ❤️❤️❤️

  8. Judy Schumwau says

    If I move a website to another host, will it affect my email? I’m nervous because several people are using the email associated with the domain and I don’t want them all to have to change any settings.

    • WPBeginner Support says

      You would need to use the server’s IP address if you do not have a domain for your site

      Admin

  9. DEBASISH GHOSH says

    This is really help full i recently created a blog with all your given instructions and i when i need to know something about wordpress i just visit your site because your all articles are so easy to follow the instruction. so thanks

  10. JohnL says

    Thank you for this great article!
    After several search and test for how can I fix a DNS problem, I was driven to search for how domain names work, so this was my first article to begin with.

    my problem is that my subdomain doesn’t work and it is redirecting me to /cgi-sys/defaultwebpage.cgi

    note: I’m using cloudflare for the main domain and I have added A record of my subdomain.

    please give us a solution for that problem in a detailed article since no one talk about that and a lot of people have the same problem

    ps. I have contacted my host provider and nothing works

    • WPBeginner Support says

      That error is most commonly caused by your DNS not being fully updated when creating a new subdomain in which case you would need to clear your cache and you may want to try renaming your htaccess file. If the error continues you may want to reach out to your hosting provider again and let them know about the continued issue.

      Admin

      • JohnL says

        I solved the problem by deleting the cache on cloudflare and exactly by turning off the ssl certificate in cloudflare until that the ssl certificate works on bluehost because it was in progress. after doing that everything is working great.
        thank you for your support and suggestion

        • WPBeginner Support says

          Glad you were able to get it resolved and thanks for sharing your solution should others run into this issue :)

  11. Olusegun says

    what is the relationship between a website and the email associated to the website? my website is hosted by one registrar and the email by another registrar and the domain name by another registrar can they be merged and manage with one account?

    • WPBeginner Support says

      Hi Olusegun,

      Yes they can be merged if your email service provider supports custom domain names (Most of them do), then you can use your website’s domain name in your email addresses. Please contact your email service provider for more details.

      Admin

  12. habib says

    hi sir i have build website at wp and i have installed google xml sitemap plugin but i am not getting my sitemap i have tried many times please help me.

  13. ADEOGUN TITUS says

    Hi! I hosted with BlueHost as recommended few weeks ago. Am having difficulty setting up my site email. pls i need a link to guide me in doing this. Thanks!

  14. Aaron Davis says

    Is it true that if you register your domain name through WP.com that can cannot take it elsewhere±

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.