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.
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.
| Method | What you change | Use it when |
|---|---|---|
| Nameservers | At your registrar, replace the nameservers with the two your host gives you | The website and email will both be with this host. The simplest choice for most small businesses |
| A record | In your current DNS, point the bare domain (@) and www to the server's IP address | You want to keep DNS where it is, for example because email runs on Google Workspace or Microsoft 365 |
| CNAME | Point www to an address the platform gives you | Connecting 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.
- Log in to cPanel and open File Manager.
- Go into
public_htmland delete any placeholder page you do not need. - Upload a ZIP of your site and use Extract, so
index.html(orindex.php) sits directly insidepublic_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.inandwww.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.