Domain · DNS · SSL

How to host a website with a custom domain

Connecting your own domain to a website is three jobs: register the name, point it at the server, and switch on HTTPS. None of them is difficult once you know which setting does what.

In short

To host a website with a custom domain, register the domain, then point it at your hosting server: either change the domain's nameservers to your host's, or add an A record pointing to the server's IP address. Upload your files, wait for DNS to update, usually a few hours, then switch on the free SSL certificate so the site loads over https.

A custom domain is the address you own, such as sharmatextiles.in, rather than one borrowed from a platform. The domain and the hosting are separate things: the domain is a name you rent by the year, and the hosting is the server where your files live. This page explains how to join the two, whether your host is us, another company or a free platform.

Key takeaways

  • Register the domain in your own name, with an email address you control.
  • Point it at your host either by changing nameservers (simplest) or by adding an A record (keeps your current DNS).
  • DNS changes often show within a few hours but can take up to 48.
  • Free SSL should switch on once the domain points to the server. Do not pay for a basic certificate.
  • If you already use email on the domain, protect your mail records before changing anything.

Step 1: Register the domain

Choose a short name that is easy to say over the phone, and register it in your own or your company's name. That last point matters: a domain registered in a designer's account can take weeks to recover.

For a business serving Indian customers, .in or .co.in is a natural fit; .com suits a business selling abroad. With us, a .in is ₹897 a year, a .co.in ₹780 and a .com ₹1,404, plus GST. Domains are ordered on our billing portal, client.avancezone.com, run by the same team, and include free DNS set-up and free email forwarding. You can search for a domain here.

Step 2: Point the domain at your host

There are two common ways to connect a domain to a server, plus a third that free platforms use. Pick one; do not mix them.

MethodWhat you changeUse it when
NameserversAt your registrar, replace the nameservers with the two your host gives youThe website and email will both be with this host. The simplest choice for most small businesses
A recordIn your current DNS, point the bare domain (@) and www to the server's IP addressYou want to keep DNS where it is, for example because email runs on Google Workspace or Microsoft 365
CNAMEPoint www to an address the platform gives youConnecting to GitHub Pages, Netlify, Cloudflare Pages, Vercel or Google Sites

When you change nameservers, the new host's DNS takes over every record, including the MX records that deliver email. If your mail is hosted elsewhere, copy those records to the new DNS first, or use the A record method instead.

Free hosting with a custom domain

Yes, you can combine a paid domain with free hosting. GitHub Pages, Netlify, Cloudflare Pages and Vercel all let you add a custom domain in their dashboard and then show you the exact records to create. The hosting stays free; only the domain costs money. Check each platform's rules: GitHub Pages, for example, is not meant for commercial or e-commerce sites, and Vercel's free Hobby plan is for personal, non-commercial use.

Step 3: Upload your website

Your files go into the folder the domain points to. On a cPanel plan that is public_html for your main domain.

  1. Log in to cPanel and open File Manager.
  2. Go into public_html and delete any placeholder page you do not need.
  3. Upload a ZIP of your site and use Extract, so index.html (or index.php) sits directly inside public_html.

You can do this before DNS has finished updating, so the site is ready the moment the domain starts pointing at it. Our cPanel hosting starts at ₹900 a year, with a typical business site on the 500 MB plan at ₹1,800 a year, both plus GST.

Step 4: Switch on HTTPS

HTTPS needs an SSL certificate, and on our cPanel plans it is free and issued automatically once the domain points to the server. Free platforms do the same.

After the padlock appears, make sure every visitor ends up on the secure version. In cPanel, the Domains page has an option to force HTTPS. Then check your pages for "mixed content": images or scripts still loaded with http://, which make browsers show a warning. Change those links to https:// or to relative paths.

How long DNS takes, and how to check it

Most DNS changes are visible within a few hours, but some networks hold the old answer for up to 24 to 48 hours. Nameserver changes at another registrar tend to be the slowest.

You can check what the world currently sees with a command available on Windows, macOS and Linux:

nslookup yourdomain.in
nslookup -type=ns yourdomain.in

The first shows the IP address the domain points to; the second shows its nameservers. If they match what your host gave you, the change has gone through, even if your own browser is still showing an old cached page.

Common mistakes when connecting a domain

Most "my domain does not work" problems are one of these. Check them in order.

  • Only one version works. Set up both yourdomain.in and www.yourdomain.in, and redirect one to the other.
  • Old records left behind. Two A records for the same name, one old and one new, send visitors to both servers at random.
  • Email stopped after the switch. The nameservers changed but the mail records were not recreated. Add the correct MX records in the new DNS.
  • Files in a subfolder. The domain works but shows an empty listing or a default page because your site is one folder too deep.
  • Domain expired. Switch on auto-renew, or set a reminder a month before the renewal date.

If you are moving an existing site from another host rather than starting fresh, read our guide to moving a website to a new host before you change any DNS.

Frequently asked questions

How do I connect my domain to my website?

Log in where the domain is registered and either change its nameservers to the two your host gives you, or add an A record pointing the domain to your server's IP address. Then upload your files to the hosting account. The domain usually starts working within a few hours.

Should I change nameservers or add an A record?

Change nameservers if your website and email will both be with the new host; it is simpler. Add an A record if you want to keep your DNS where it is, for example because your email runs on Google Workspace or Microsoft 365 and you do not want to touch those records.

Can I use a custom domain with free hosting?

Yes. GitHub Pages, Netlify, Cloudflare Pages, Vercel and Google Sites all accept a domain you own, and they provide HTTPS free. You still pay for the domain itself, from ₹897 a year for a .in with us. Check each platform's rules on commercial use first.

Why does my domain still show the old website?

DNS changes take time to reach every network, often a few hours and sometimes up to 48. Your own computer may also have cached the old address. Check with nslookup, try the site on mobile data instead of Wi-Fi, and clear your browser cache before assuming something is wrong.

Do I need to buy an SSL certificate for my domain?

Not for an ordinary website. Our cPanel plans include free SSL, issued once your domain points to the server, and free platforms such as GitHub Pages and Netlify include it too. Paid certificates are only worth considering for specific business or compliance requirements.

Will my email stop working if I change nameservers?

It can. The new nameservers take over all DNS records, including the MX records that deliver mail. Before switching, note your current email records and recreate them at the new host, or ask us to do it. If your email is with another provider, an A record change avoids the risk.

WhatsApp