How to Point Your Domain to Your Web Hosting
On this page
- What Does It Mean to Point a Domain to Hosting?
- Before You Begin
- Method 1: Point Your Domain Using Nameservers
- Step 1: Find Your Hosting Nameservers
- Step 2: Sign In to Your Domain Registrar
- Step 3: Update the Nameservers
- Step 4: Wait for DNS Changes to Take Effect
- Step 5: Test Your Website
- Method 2: Point Your Domain Using DNS Records
- Step 1: Get Your Hosting IP Address
- Step 2: Open Your DNS Management Panel
- Step 3: Create or Update the A Record
- Step 4: Save Your Changes
- Step 5: Verify the Configuration
- What If Your Domain Uses Cloudflare?
- Common Problems When Pointing a Domain
- 1. The Website Still Shows the Old Hosting Account
- 2. The Domain Shows a Default Hosting Page
- 3. The Website Shows an SSL Warning
- 4. Your Website Works but Email Stops Working
- 5. The Domain Does Not Resolve
- How to Check Your DNS Records
- Frequently Asked Questions
- How long does it take to point a domain to hosting?
- Should I change nameservers or update DNS records?
- Will pointing my domain delete my website?
- Do I need SSL after pointing my domain?
- Can I point a subdomain to a different server?
- Final Thoughts
Have you purchased a domain name and a hosting plan but don’t know how to connect them? This guide explains how to point your domain to your web hosting using nameservers or DNS records.
When configured correctly, your domain can direct visitors to your website without requiring them to remember a server’s IP address.
What Does It Mean to Point a Domain to Hosting?#
Your domain name is your website’s address, while your hosting service stores or runs the website itself.
The Domain Name System (DNS) connects the two by telling browsers and other internet services where to find the resources associated with your domain.
For example, if your domain is example.com, you can configure its DNS so visitors reach the website hosted on your server.
There are two common ways to do this:
- Changing nameservers: Delegate DNS management to the nameserver provider.
- Updating DNS records: Keep your existing DNS provider and configure records to point to your hosting service.
The right method depends on your hosting provider and how your domain is currently configured.
Before You Begin#
Make sure you have:
- A registered domain name.
- An active hosting service.
- Access to your domain registrar or DNS management platform.
- The nameservers or DNS records supplied by your hosting provider.
If you’re using iHostio, check your hosting service details or contact support if you’re unsure which values to use.
Important: Do not guess your nameservers or server IP address. Use the exact values provided for your service.
Method 1: Point Your Domain Using Nameservers#
Changing nameservers is a common approach when you want your hosting provider to manage your domain’s DNS.
Step 1: Find Your Hosting Nameservers#
Sign in to your hosting account and locate the nameservers assigned to your service.
They may look similar to the following examples:
ns1.ihostio.comns2.ihostio.com
These are illustrative examples only. Your actual nameservers may be different.
Step 2: Sign In to Your Domain Registrar#
Open the website of the company where you registered your domain.
Locate your domain management page and look for an option labelled Nameservers, DNS Servers, or something similar.
Step 3: Update the Nameservers#
If you intend to use your hosting provider’s nameservers, select the option to enter custom nameservers.
Replace the existing entries with the exact nameservers supplied by your hosting provider, then save your changes.
Step 4: Wait for DNS Changes to Take Effect#
Nameserver changes may become visible within minutes, but they can take longer to propagate globally. In some cases, allow up to 24–48 hours for caches and related changes to settle.
You can check the domain again periodically while waiting.
Step 5: Test Your Website#
Once the changes take effect, open your domain in a browser.
If your website is configured correctly, it should load from your hosting service. If it does not, check your hosting configuration and DNS records before making further changes.
Method 2: Point Your Domain Using DNS Records#
You can also keep your existing DNS provider and update the records required by your hosting service.
This method is useful when you manage DNS through a provider such as Cloudflare or need to preserve existing DNS configurations.
Step 1: Get Your Hosting IP Address#
Find the IP address assigned to your hosting service.
For shared hosting, this is usually available in your hosting account information. For VPS hosting, use the relevant server IP and configure the web server to serve your domain.
Step 2: Open Your DNS Management Panel#
Sign in to the platform currently managing your domain’s DNS.
Open the DNS records section for your domain.
Step 3: Create or Update the A Record#
An A record maps a hostname to an IPv4 address.
A typical configuration may look like this:
| Type | Name | Value |
|---|---|---|
| A | @ | Your hosting IPv4 address |
| A | www | Your hosting IPv4 address |
The @ symbol commonly represents the root domain, while www represents the www subdomain.
Your DNS provider may use a different format or allow www to be configured as a CNAME pointing to your root domain. Follow the provider’s instructions.
Replace the example values with the actual IP address assigned to your hosting service.
Step 4: Save Your Changes#
Save the DNS records and confirm that no conflicting records remain for the same hostname.
Do not delete unrelated records without understanding their purpose. Your email, verification services, and other applications may depend on them.
Step 5: Verify the Configuration#
Allow time for the DNS changes to become visible, then test your domain.
If the domain resolves to the expected IP address but the website does not load, check whether the domain has been added to your hosting account and configured correctly in your web server.
What If Your Domain Uses Cloudflare?#
If your domain uses Cloudflare for DNS management, you generally make DNS changes inside the Cloudflare dashboard rather than at your hosting provider.
To point your domain to your hosting service:
- Sign in to Cloudflare.
- Select the relevant domain.
- Open the DNS records section.
- Add or update the required A or CNAME records using your hosting provider’s values.
- Review the proxy setting for each record.
- Save the changes and test your domain.
Cloudflare’s proxy can provide supported services such as caching and protection for eligible web traffic. However, not every hostname or application protocol should be proxied.
If you’re troubleshooting a website, temporarily switching a supported web record to DNS-only can help determine whether the issue is related to Cloudflare’s proxy. This does not fix every DNS or hosting problem.
Important: Keep your existing email-related records, including MX and relevant TXT records, unless you know they are no longer needed.
Common Problems When Pointing a Domain#
1. The Website Still Shows the Old Hosting Account#
Your device, internet provider, or DNS resolver may still be using cached DNS information.
Wait for the relevant caches to update and verify the current DNS response before changing records again.
2. The Domain Shows a Default Hosting Page#
The domain may be pointing to the correct server but not configured correctly in the hosting account.
Check that the domain has been added to the hosting service and that the website files are in the correct document root.
3. The Website Shows an SSL Warning#
DNS configuration alone does not guarantee that HTTPS will work.
Confirm that an SSL/TLS certificate has been issued and installed for your domain, and that the web server is configured to use it.
4. Your Website Works but Email Stops Working#
Changing nameservers can change which DNS records are authoritative for your domain.
Ensure the new DNS provider has the required MX, SPF, DKIM, and DMARC records for your email service. Missing or incorrect records can interrupt email delivery or authentication.
5. The Domain Does Not Resolve#
Check for misspelled nameservers, incorrect DNS records, missing records, or conflicting configurations.
You can use a DNS lookup tool to check what public resolvers return for your domain.
How to Check Your DNS Records#
You can use a DNS lookup service or command-line tools to inspect your domain.
For example, on a system with dig installed, run:
dig example.com A
dig www.example.com A
dig example.com NS
Replace example.com with your own domain.
These commands check the IPv4 address records for the root and www hostnames, and the domain’s nameservers.
To check a specific public resolver, you can use:
dig @1.1.1.1 example.com A
dig @8.8.8.8 example.com A
Different resolvers may temporarily return different results while caches update.
Frequently Asked Questions#
How long does it take to point a domain to hosting?#
Some DNS changes become visible within minutes. Others take longer, depending on TTL values, caching, nameserver changes, and the previous configuration. Allow up to 24–48 hours where necessary.
Should I change nameservers or update DNS records?#
Change nameservers if you want another provider to manage your domain’s DNS. Update individual DNS records if you want to retain your current DNS provider and only direct selected hostnames to your hosting service.
Will pointing my domain delete my website?#
Changing DNS does not normally delete website files. However, it can direct visitors to a different server, and changing nameservers without recreating required DNS records can interrupt website or email services.
Do I need SSL after pointing my domain?#
Yes, if you want your website to use HTTPS. Make sure a valid SSL/TLS certificate is installed and configured after your domain points to the correct hosting service.
Can I point a subdomain to a different server?#
Yes. A subdomain such as app.example.com can point to a different IP address or hostname, provided your DNS and destination server are configured correctly.
Final Thoughts#
Pointing your domain to web hosting involves configuring the correct nameservers or DNS records, allowing changes to propagate, and verifying that your hosting account is ready to serve the website.
Always use the configuration values supplied by your hosting provider and preserve any DNS records required by your email or other services.
If you use iHostio and need help connecting your domain, visit the iHostio website and access the official support options available to your account.
DNS interfaces and hosting configurations vary by provider. Always confirm the correct settings for your specific service before making changes.