Buying a domain and buying hosting are two separate purchases, and neither one does anything on its own until you connect them. That connection is called pointing your domain, and it is the single step that turns a registered name into an actual live website.
This guide walks through exactly how to point a domain to your hosting server, covers both ways to do it, and explains what to do if something does not work right away.
When you register a domain, you own the name, but the internet still does not know which server to send visitors to when someone types it in. Pointing a domain tells the internet’s naming system, called DNS, exactly which server holds your website files.
Think of your domain as a phone number and your hosting server as the actual phone. Without pointing, the number exists but does not ring anywhere. Pointing connects the two so that typing your domain actually loads your website.
There are two common ways to make this connection, and picking the right one depends on your situation.
Nameservers hand over full control of your domain’s DNS settings to your hosting provider. This is the simpler and more common method, especially for shared hosting, WordPress hosting, and most beginner setups.
When you sign up for hosting, your provider gives you two or more nameserver addresses, usually formatted like ns1.yourhost.com and ns2.yourhost.com. Once you enter these at your domain registrar, your host manages everything else automatically, including any subdomains, email routing, and future record changes.
This method works well if you want a simple setup and do not need to manage DNS records manually.
The second method keeps your domain’s DNS management with your registrar, or with a separate DNS provider, while pointing specific records directly at your hosting server’s IP address.
An A record connects your domain to a specific IPv4 address. A CNAME record points a subdomain, like www, to another domain name instead of an IP address. This method gives you more granular control, which is useful if you are running email through a different provider or using a CDN service alongside your hosting.
This method requires slightly more manual setup than changing nameservers, since you need the exact IP address of your hosting server rather than just the nameserver names.
Before touching your domain settings, gather the information your host requires. This usually arrives in your welcome email right after signing up, and is also available in your hosting control panel.
If you are hosting with Alif Host, you can find your nameservers and server IP address inside your client area under your active hosting service. If you have not set up hosting yet, compare shared hosting for a standard website, WordPress hosting if you are building on WordPress specifically, or VPS hosting if you expect consistent daily traffic.
Go to wherever you registered your domain, whether that is Alif Host, another Pakistani registrar, or an international one, and log into your account. Find the domain management section, usually labeled Domains, My Domains, or Manage Domain.
Look for a section called DNS Settings, Nameservers, or DNS Zone Editor. The exact label changes between registrars, but it is almost always under the individual domain’s management page rather than the account dashboard.
If you are using the nameserver method, follow these steps:
Once saved, your hosting provider takes over DNS management for the domain completely, including any records you had set up previously through the old nameservers.
If you are using the A record method instead, follow these steps:
This method leaves the rest of your DNS records, such as MX records for email, untouched, which is useful if your email is hosted separately from your website.
DNS changes do not take effect instantly everywhere. Propagation is the process of these changes spreading across DNS servers worldwide, and it typically completes within a few hours, though it can occasionally take up to 24 to 48 hours depending on your previous DNS settings and your internet provider’s cache.
During this window, your site may load correctly for some visitors and show an old version, an error, or a parking page for others. This is completely normal and resolves on its own as propagation completes.
You can check propagation status using any free DNS checker tool, which shows whether your new nameservers or records have updated across different global locations.
Once propagation completes, visit your domain directly in a browser to confirm your website loads correctly. Check both the root domain and the www version to make sure both resolve properly.
If your site loads but shows a default hosting page instead of your actual website, this usually means the domain is pointing correctly but your hosting account itself is not yet configured with that domain as the primary or addon domain. Check your hosting control panel to confirm the domain is properly assigned there.
| Situation | Recommended Method |
|---|---|
| New website, standard shared or WordPress hosting | Nameservers |
| Email hosted with a different provider than your website | A and CNAME records |
| Using a CDN or separate DNS management service | A and CNAME records |
| Want the simplest possible setup | Nameservers |
| Need fine grained control over individual records | A and CNAME records |
Site not found or connection error. This is almost always either incomplete propagation or a typo in the nameserver or IP address. Double check the exact values your host provided, since a single character mistake will break the connection entirely.
SSL certificate warning after pointing. If your site loads but shows a security warning, your SSL certificate has not been issued yet for the new setup. Most hosts automatically issue a free certificate once the domain resolves correctly, but this can take a few hours after propagation completes. If you have not set up SSL yet, Alif Host’s SSL certificate options activate automatically once your domain is properly connected.
Email stopped working after changing nameservers. Switching nameservers moves all DNS records, including MX records for email, to your new host. If your email was set up separately, you will need to recreate those MX records under your new nameservers, or use the A record method instead to avoid this issue entirely.
Old website still showing after 48 hours. This is usually a browser or local DNS cache issue rather than a real propagation problem. Try clearing your browser cache, testing in a private browsing window, or checking from a different network or device.
If you registered your domain through the same provider as your hosting, this entire process is usually automatic. Alif Host, for example, pre-configures nameservers automatically when both services are active on the same account, meaning you may not need to touch any DNS settings manually at all.
If your domain was registered somewhere else and you are moving your hosting to a new provider, you will need to manually update the nameservers or DNS records at your original registrar, since domain management always stays with wherever the domain itself is registered, regardless of where your hosting lives.
If you are setting up a brand new website and have not registered a domain yet, buying both together through Alif Host’s domain registration alongside a hosting plan removes this step almost entirely.
Most changes complete within a few hours, though full worldwide propagation can occasionally take up to 24 to 48 hours depending on your previous DNS configuration.
Yes. Using A records and CNAME records lets you point your domain to a hosting server’s IP address while keeping DNS management with your original registrar or a separate DNS provider.
Changing nameservers moves all DNS records, including email routing, to your new host. If your email is managed separately, use the A record method instead, or recreate your MX records after switching nameservers.
Your domain will fail to resolve correctly, usually showing a connection error or parking page. Simply correct the nameserver values and save again, and the domain will begin resolving correctly once the correction propagates.
No. Renewing either service does not affect your existing DNS configuration. Pointing only needs to be done once, or again if you switch to a different hosting provider in the future.
Pointing a domain looks intimidating the first time, but it comes down to entering a few values correctly and waiting for the internet to catch up. Once it is done, it rarely needs to be touched again unless you change providers.
If you are setting up a new website and want this step handled automatically, explore Alif Host’s hosting plans or register your domain directly with Alif Host so both services connect without any manual DNS work on your part.