Domain & DNS

How to Point a Domain to a Website

Published Ocak 20, 2025

You've registered a domain and set up hosting — now you need to connect them. There are two main methods: changing nameservers or updating A records. The right approach depends on your setup.

Quick answer: To point a domain to a website, either (1) change your domain's nameservers to your hosting provider's nameservers, or (2) update the A record at your current DNS provider to your hosting server's IP address.

Method 1: Change Nameservers (Recommended for New Setups)

This is the most common method when moving to a new host. Your hosting provider gives you two nameservers (e.g. ns1.yourhost.com and ns2.yourhost.com).

  1. Log in to your domain registrar.
  2. Go to your domain's DNS or Nameserver settings.
  3. Replace the existing nameservers with those provided by your host.
  4. Save. Allow up to 48 hours for propagation.

When to use: Moving all services (website, email) to a new hosting provider.

Method 2: Update the A Record (Recommended for Partial Moves)

If you only want to change where the website points while keeping email and other settings unchanged, update just the A record.

  1. Find your new hosting server's IP address (your host will provide this).
  2. Log in to your current DNS provider or registrar.
  3. Find the A record for @ (root domain) and www.
  4. Update both to the new IP address.
  5. Save. Changes propagate in 1–24 hours depending on TTL.

When to use: Keeping your DNS provider (e.g. Cloudflare) but changing hosting servers.

Method 3: CNAME to a Hosted Service

If you're using a hosted platform (Shopify, Squarespace, GitHub Pages), they typically ask you to add a CNAME record for www pointing to their hostname.

Verifying the Connection

After making changes, use our DNS Lookup tool to verify the A record is returning the correct IP. Allow time for propagation before concluding something is wrong.

Common Mistakes

  • Changing nameservers but expecting existing A records from the old provider to still work
  • Only updating the root domain A record and forgetting www
  • Not waiting long enough for DNS propagation

Related Guides

DNS (Domain Name System) is the internet's phone book — it translates domain names into IP addresses so browsers can load websites.
DNS propagation is the time it takes for DNS changes to spread across all DNS servers worldwide — usually 24 to 48 hours.
An A record is a DNS record that maps a domain name to an IPv4 address, telling browsers which server to connect to.
A CNAME record creates an alias that points one domain name to another domain name instead of directly to an IP address.
An MX record specifies which mail servers are responsible for accepting email for a domain.