You have registered a domain name and bought web hosting. But how do you make sure that visitors of your domain actually see your website? You arrange that via DNS, and it is easier than it sounds. Read more about a .dev domain name.

How does the connection work?

A domain name is like a phone number in a phone book. The DNS (Domain Name System) is that phone book: it translates your domain name into the IP address of your server. Without that connection, nobody knows where your website is. Read more about a worldwide domain name check.

There are two ways to connect your domain:

  1. Change the nameservers: You let the hosting provider manage all DNS
  2. Adjust the A record: You only point the domain to the server IP

Method 1: Change the nameservers

This is the easiest method if your domain and hosting are with different parties.

Step 1: Look up the nameservers

Your hosting provider gives you nameservers, usually something like:

  • ns1.example-hosting.nl
  • ns2.example-hosting.nl

You will find these in your welcome email or in the control panel of your hosting.

Step 2: Set the nameservers at your domain registrar

  1. Log in to your domain provider (where you registered the domain)
  2. Go to DNS settings or Nameservers
  3. Replace the current nameservers with those of your hosting
  4. Save

Within 24 hours (often much faster) your domain points to your hosting.

Method 2: Adjust the A record

Want to keep the DNS with your domain registrar? Then you only adjust the A record.

What is an A record?

An A record connects your domain name directly to an IP address. You need the IP address of your web server, ask your hosting provider or look it up in your control panel.

Setting the A record

  1. Log in to your domain registrar
  2. Go to DNS management
  3. Find the A record for @ (or your domain name)
  4. Enter the IP address of your hosting
  5. Also add an A record for "www" with the same IP

Commonly used DNS records

Record Function Example
A Connects a domain to an IPv4 address @ → 123.45.67.89
AAAA Connects a domain to an IPv6 address @ → 2001:db8::1
CNAME Alias to another domain www → example.nl
MX Mail server @ → mail.example.nl
TXT Text info (SPF, verification) @ → "v=spf1 ..."

Do not forget your email

If you change nameservers, you need to reconfigure your email at your new DNS provider. Set MX records that point to your mail server.

Do you use business email on your own domain? Make sure the MX records are correct before you make the switch.

DNS propagation: waiting for the world

After a DNS change it takes a while before all internet providers have the new data. This is called DNS propagation and can take up to 48 hours, though it is usually sorted within a few hours.

During propagation some visitors may still see the old situation. That is normal and resolves itself.

Checklist: connecting a domain

  • ☐ Hosting account created and active
  • ☐ Nameservers OR IP address of the hosting at hand
  • ☐ Access to the DNS management of your domain
  • ☐ MX records noted (if you use email)
  • ☐ Nameservers changed OR A record adjusted
  • ☐ Wait 24-48 hours for propagation

Not working?

Common problems:

  • Typo in the nameservers: Check for spaces and capital letters
  • Wrong IP address: Check whether you have the correct IP
  • Checked too soon: Give it 24 hours
  • Browser cache: Try incognito or a different browser

Everything with one provider

The easiest is to have your domain and hosting with the same party. Then the connection is often automatic or arranged with one click.

Solving problems when connecting

Website shows an error message or blank page

Check whether the DNS changes have propagated with a tool like whatsmydns.net. DNS propagation can take up to 24-48 hours, although it is usually faster. Also check whether your hosting account is active and whether there are website files in the correct folder.

Only the homepage works

This often indicates a problem with your .htaccess file or the server settings. For WordPress sites it can help to save the permalinks again under Settings > Permalinks.

SSL certificate does not work

If you have just connected your domain, the SSL certificate often needs to be requested again. This can be done automatically via Let's Encrypt or manually via your control panel. Wait until the DNS has fully propagated before you activate SSL.

Connecting a domain with different providers

The exact steps differ per hosting provider, but the principle is always the same: you change the nameservers at your registrar to those of your hosting provider, or you set DNS records manually.

With most providers you will find the required settings in the welcome message or under "Domains" in your control panel. In doubt? Your provider's support can tell you exactly which details to enter.

Connecting your domain to your hosting is a one-time action that makes your website reachable for the world. Whether you choose to change nameservers or set DNS records, the result is the same: visitors who type your domain name end up on your website. When in doubt, your hosting provider's support is happy to help.

Connecting a domain name to hosting is a one-time action that makes your website accessible to visitors. Store your DNS settings in a safe place for future reference.

After connecting, check whether everything works: website, mail and other services. A correct configuration saves a lot of hassle later.

With Theory7 you can register a domain name directly with your hosting plan. The connection is then automatic, no DNS hassle needed.

Connecting a domain: the most used methods compared

There are several ways to connect a domain to your hosting. The best method depends on your situation.

MethodDifficultySpeedFlexibilityRecommended for
Change nameserversEasy24-48 hoursLimitedEverything with 1 provider
Adjust A recordMedium1-4 hoursHighManaging DNS elsewhere
CNAME recordMedium1-4 hoursHighSubdomains
Cloudflare proxyAdvancedMinutesVery highExtra security/speed

Step by step: connecting a domain to your hosting

Follow these steps to successfully connect a domain to your hosting account:

  1. Look up your hosting IP address: log in to your hosting provider and note the IP address of your server. With Theory7 web hosting you will find this in DirectAdmin under “Server Statistics”.
  2. Log in to your domain registrar: go to the DNS management of your domain name.
  3. Choose your method: change the nameservers OR adjust the A record to the IP address of your hosting.
  4. Wait for propagation: DNS changes need time to propagate worldwide.
  5. Check the connection: use a DNS checker tool to verify that everything is correct.

Solving problems when connecting a domain

Is the connection not going smoothly? These are the most common causes and solutions:

  • Website shows the default page: the domain is connected but not set as the primary domain in your hosting. Add the domain in DirectAdmin or cPanel.
  • SSL error after connecting: the SSL certificate has not yet been created for the new domain. Request a new certificate via Let’s Encrypt.
  • Email no longer works: if you changed nameservers, the MX records need to be set again at your new DNS provider.
  • Propagation takes too long: flush your local DNS cache and try a different browser or device.

Frequently asked questions about connecting a domain

Can I connect multiple domain names to the same hosting?

Yes, via aliases or add-on domains you can connect multiple domain names to one hosting plan. This is handy for different spelling variants or brand protection.

What is the difference between connecting a domain and transferring a domain?

When connecting, you point your domain to a hosting server via DNS. When transferring, you move the domain management to another registrar. You can connect your domain without transferring it.

How do I know whether my domain is connected correctly?

Use an online DNS lookup tool and check whether the A record points to the IP address of your hosting. You can also use our domain name checker to check the status.

DNS records explained for connecting a domain

A good understanding of DNS records is essential if you want to connect a domain to hosting. Here are the most important records you need to know:

  • A record: connects your domain name to an IPv4 address of the server
  • AAAA record: connects your domain name to an IPv6 address
  • CNAME record: points a subdomain to another domain (e.g. www to your main domain)
  • MX record: determines which server receives your email
  • TXT record: contains text information for verification (SPF, DKIM, DMARC)
  • NS record: determines which nameservers are authoritative for your domain

Example: connecting a domain via an A record

Suppose your hosting provider has IP address 185.100.200.50. Then you create the following DNS records:

TypeNameValueTTL
A@185.100.200.503600
Awww185.100.200.503600
MX@mail.example.nl3600

After setting these records it usually takes 1 to 24 hours before the changes have propagated worldwide. You can check the progress with an online DNS propagation checker.

Advanced connections: subdomains and aliases

In addition to connecting your main domain, you can also set up subdomains and aliases:

  1. Connect a subdomain: create a CNAME or A record for e.g. “shop.yourdomain.nl” that points to another IP address or server.
  2. Domain alias: add an extra domain name as an alias in DirectAdmin, so that multiple domains show the same website.
  3. Wildcard DNS: with a wildcard A record (*.yourdomain.nl) you point all subdomains to the same server.

When in doubt, contact your hosting provider. A wrong DNS configuration can make your website or email temporarily unreachable.

Connecting a domain: expert tips

Connecting a domain to your hosting does not have to be complicated if you follow these expert tips. Always use a short TTL (300 seconds) when you plan DNS changes, so any mistakes can be corrected quickly. Only raise the TTL back to 3600 or higher after everything runs stably. Document all your DNS records before you make changes, so you can quickly roll back in case of problems. And do not forget: when connecting a new domain you also need to request the SSL certificate again for that domain name. With Theory7 Let’s Encrypt is automatically configured for all connected domains.

Connecting a Domain: Advanced DNS Configuration

After the basic setup of connecting a domain to hosting there are various advanced DNS configurations that make your website perform better and more secure.

Configuring subdomains

In addition to your main domain you can create subdomains for various purposes. Use subdomains for a web shop (shop.yourdomain.nl), a blog (blog.yourdomain.nl), a test environment (staging.yourdomain.nl) or an API (api.yourdomain.nl). Each subdomain can point to a different IP address or a different server, which gives flexibility in your infrastructure. Create an A record or CNAME record for each subdomain in your DNS management.

DNS records for email

When you connect your domain to hosting, do not forget to set the email DNS records. MX records point to your mail server, SPF records specify which servers are allowed to mail on behalf of your domain, DKIM records add a digital signature to your messages and DMARC records combine SPF and DKIM. These records together ensure reliable email delivery and protect against spoofing.

Overview of essential DNS records

RecordTypeFunctionExample
A recordADomain to IP address@ to 93.184.216.34
CNAMECNAMEAlias to another domainwww to yourdomain.nl
MX recordMXPoint to a mail servermail.yourdomain.nl
TXT (SPF)TXTMail server authorizationv=spf1 include:provider.nl
TXT (DKIM)TXTEmail signaturePublic key
CAACAARestrict SSL issuanceletsencrypt.org

Connecting a Domain: Frequently Asked Questions and Troubleshooting

When connecting a domain to your hosting, various questions and problems can arise. Here you will find answers to the most frequently asked questions.

DNS propagation takes too long

After changing nameservers or DNS records it can take up to 48 hours before the changes have propagated worldwide. In practice it usually takes 2 to 4 hours. You can check the progress with online tools that show the DNS status at various nameservers worldwide. For future changes, lower the TTL value of your records to a lower value, so changes are applied faster.

Website shows the default page after connecting

If your website shows a default page of your hosting provider instead of your own website, there are a few possible causes. The domain may not yet be configured correctly in the hosting panel. Check whether the domain is added as the primary domain in DirectAdmin or cPanel. Also verify whether your website files are in the correct directory and whether the DNS records point to the correct IP address of your hosting server.

Want to know more about setting up email with your domain? Read our article on setting up an email address with your own domain name.

Connecting a Domain: Frequently Asked Questions and Tips

When connecting a domain to your hosting, many of the same questions come up. Below we answer the most frequently asked questions with practical tips.

How long does connecting a domain name take?

The connecting itself takes only a few minutes: you change the nameservers or DNS records at your registrar. DNS propagation, applying the change to all DNS servers worldwide, can take up to 48 hours. In practice it is usually completed within 2 to 4 hours. During the propagation period some visitors may still see the old server while others already reach the new one.

What if my domain is with a different registrar than my hosting?

It is very common for your domain to be registered with a different party than where you have your hosting. You have two options: change the nameservers at your registrar to those of your hosting provider, or manage the DNS records yourself at your registrar and create A records and CNAME records that point to your hosting server. The first option is simpler but gives you less control. The second option offers more flexibility but requires more technical knowledge.

Tips for a trouble-free connection

  • Note your current DNS settings before you make changes, so you can restore them in case of problems
  • Lower the TTL a day in advance to 300 seconds for faster propagation
  • Configure your hosting first before you change the DNS, so visitors see the right content right away
  • Test with the hosts file on your computer to view the website before the DNS has propagated
  • Monitor the propagation with online tools that show the DNS status worldwide

Connecting a Domain: Summary and Best Practices

With the right approach, connecting a domain to your hosting is a simple process that makes your website reachable in a short time.

The five most important rules

Remember these five rules for a trouble-free domain-hosting connection. Rule one: always make a backup of your current DNS settings before you make changes. Rule two: lower the TTL of your records beforehand to enable faster propagation. Rule three: fully configure your hosting environment before you change the DNS records. Rule four: test your website via the hosts file on your computer before the DNS goes live. Rule five: monitor the DNS propagation and test all functionality after the switch.

After connecting: first steps

Once your domain is successfully connected to your hosting, take the following steps. Install an SSL certificate right away for secure HTTPS connections. Configure your email accounts on the new domain and set the associated DNS records. Install your chosen CMS or upload your website files. Test your website on various devices and browsers. Set up monitoring to continuously watch the availability of your website. With these steps your website is ready to receive visitors.

Connecting a Domain: Avoiding Common Mistakes

When connecting a domain to your hosting, avoidable mistakes are made regularly. The most common mistake is changing nameservers and DNS records at the same time, which leads to conflicts. Change the nameservers first and wait until propagation is complete before you adjust individual DNS records. Another mistake is forgetting the www variant. Always configure both the bare domain and the www version and set a redirect so visitors always end up on the right version. Also do not forget to revalidate your SSL certificate after connecting.

Understanding and monitoring DNS propagation

After connecting your domain name, understanding DNS propagation is essential. When you change DNS records, these changes are not applied worldwide immediately. This propagation process usually takes a few hours but can take up to 48 hours. Use online tools such as whatsmydns.net to monitor the progress of the propagation in real time. Lower the TTL value of your records a day before the planned change to significantly reduce the propagation time.

Free tool: Use our WHOIS Lookup tool. Instantly check the registration details, nameservers and expiry date of any domain.