ENHEIT

payless.host

How to Connect a Domain to Your Hosting (Step by Step)

Updated Nov 22, 2026

What you need before starting

You need two things: a domain name and a hosting account. They can be from the same company or different ones. If you bought them separately, you will connect them by changing settings where the domain is registered.

You also need login details for wherever the domain is registered. That might be Namecheap, Hostinger, or another registrar. If you cannot remember where you bought the domain, a WHOIS lookup will show the registrar name.

Step 1: Find your hosting account's nameservers

Log into your hosting control panel. Look for a section called "Account Details", "Server Information", or similar. You need two addresses that look like this:

The exact format varies, but they always start with "ns" and there are usually two of them. Write them down exactly as shown. A single typo here means nothing works.

Some hosts also offer an IP address method instead of nameservers. That works, but nameservers are easier to manage if you add email or other services later.

Step 2: Log into your domain registrar

Go to the site where you registered the domain. Find the domain management area — usually under "My Domains" or "Domain List". Click the domain you want to connect.

Look for a section called "Nameservers", "DNS Settings", or "Name Server Settings". Different registrars put this in different places, but it is always somewhere in the domain's settings page.

Step 3: Change the nameservers

The domain is probably set to the registrar's own nameservers by default. You will replace those with the ones from your hosting account.

Most registrars show a dropdown or radio button with options like "Default nameservers" or "Custom nameservers". Select the custom option.

Paste in the two nameserver addresses from Step 1. Double-check them. The most common mistake here is a missing letter or an extra space.

Save the change. Some registrars ask you to confirm, others save immediately.

Step 4: Wait for DNS propagation

The change is not instant. DNS propagation takes anywhere from a few minutes to 48 hours, though it is usually complete within 4 to 8 hours.

During this time, some people will see the new site and others will see the old one, or nothing at all. This is normal. You cannot speed it up.

How to check if it worked

Open a command prompt or terminal. Type:

`nslookup yourdomain.com`

If the nameservers listed match the ones you entered in Step 3, the change has propagated to your location. If they still show the old nameservers, wait longer.

Another test: visit your domain in a browser. If you see the default page from your hosting account — usually something like "Your account is active" — the connection worked. If you see an error or the registrar's parking page, it has not propagated yet or something was entered incorrectly.

What can go wrong

Typo in the nameserver address. Even one wrong character breaks the connection. Go back to Step 3 and compare what you entered against what your host provided, character by character.

Nameservers from the wrong account. If you have multiple hosting accounts, check you used the nameservers for the account where the site files are. Each account has different nameservers.

DNS lock enabled. Some registrars let you lock DNS changes to prevent hijacking. If saving the nameservers fails, look for a "DNS lock" or "Domain lock" setting and turn it off, then try again.

Domain not fully registered yet. A domain transfer or new registration can take a few hours to complete. If you only just bought the domain, the registrar might not let you change settings until registration finalises.

If the domain connects but the site does not show

Nameservers point the domain at the hosting account, but the hosting account also needs to know the domain exists. Log into your hosting control panel and look for "Add Domain" or "Addon Domains". Enter your domain there.

Some hosts do this automatically if you registered the domain through them. If you brought the domain from elsewhere, you usually need to add it manually.

Email will stop during the switch

If you have email set up at the old host or through the registrar, it will stop working when you change nameservers. Email uses the same DNS records as the website.

Set up email at the new host before changing nameservers, or plan for downtime. There is no way around this.

How long before you can reverse it

If something goes wrong, you can change the nameservers back. The reversal takes the same 4 to 48 hours to propagate. Write down the old nameservers before you change them, in case you need to revert.

The providers in this article