Point a domain to your hosting with nameservers or an A record
Your domain can stay with whichever registrar you bought it from. To make it load your new site and receive email, either hand its DNS to us by changing the nameservers, or keep DNS where it is and point a few records at your server.
Before you start
- The login for the registrar where your domain is registered (or the DNS provider, such as Cloudflare, if you use one).
- Your VirtualCloud nameservers (from the welcome email) or your server's IP address (from cPanel).
- A note of any existing records you need to keep, especially MX records for email hosted elsewhere and TXT verification records.
Nameservers or A record: which method should you use?
Both methods end in the same place: visitors who type your domain reach your VirtualCloud server. The difference is where your DNS records live afterwards.
| A. Change nameservers | B. Point A records | |
|---|---|---|
| DNS is managed in | cPanel › Zone Editor, at VirtualCloud | Your registrar or current DNS provider |
| What you change | Two nameserver entries | An A record for @, plus www |
| Email records | Created for you in cPanel; recreate any you had elsewhere | Left exactly as they are |
| Best when | Your site and email are both moving to us | You use Cloudflare, or email stays with Google Workspace or Microsoft 365 |
Not sure? Change the nameservers. It's one change at the registrar, and afterwards our support team can see and fix your DNS for you from the same account.
Option A: Change your nameservers
-
Find your VirtualCloud nameservers
They are in the welcome email we send when your hosting is set up, and in the client area under Servicesyour hosting planNameservers. The names are specific to your server, so copy them from there rather than from this page.
VirtualCloud <support@virtualcloud.in>To: you@yourdomain.inDomainyourdomain.inNameserver 1ns1.your-assigned-nsNameserver 2ns2.your-assigned-nsServer IP203.0.113.24Example only. Your nameservers and server IP are in your own welcome email. If you bought the domain from us together with the hosting plan, the nameservers are usually set already. Check under Domainsyour domainNameservers before changing anything.
-
Open the nameserver settings at your registrar
Sign in where the domain is registered and open the domain. The setting is usually called Nameservers, DNS / Nameservers or Manage DNS. Not sure which registrar holds your domain? Our WHOIS lookup shows it. You can also transfer your domain to VirtualCloud and manage it next to your hosting.
-
Switch to custom nameservers and replace every entry
Choose the custom (or "use my own") option, enter both VirtualCloud nameservers and remove any others. Leaving an old nameserver in the list means some visitors will still be sent to the old host.
Registrar defaultCustom nameserversNameserver 1ns1.your-assigned-nsNameserver 2ns2.your-assigned-nsSave nameserversCancelLabels differ between registrars; the two values you enter are the same everywhere. Type host names only: no
http://, no trailing dot, no spaces and no IP addresses. -
Save, then give DNS time to update
The registry usually publishes the change within an hour. Internet providers keep the old answer until their cached copy expires, which can take up to 48 hours, so some people may see the new site before others. Check progress instead of waiting blind.
Copy your existing records first. Once the nameservers change, the DNS zone at your old provider stops being used. If your email runs on Google Workspace or Microsoft 365, or you have TXT records for site verification, add them in cPanelDomainsZone Editor before you switch. DNS records explained has the exact values.
Option B: Keep your DNS and point A records
-
Find your server's IP address in cPanel
Log in to cPanel. The General Information panel on the right of the home screen lists it as Shared IP Address, or Dedicated IP Address on plans that include one (Universe and WP Business).
Current Useryourus3rPrimary Domainyourdomain.inShared IP Address203.0.113.24Home Directory/home/yourus3r203.0.113.24 is a documentation address. Use the IP shown in your own cPanel. -
Add or edit these records at your DNS provider
Open the DNS settings for the domain and make the records match this table. Some providers want the full name (yourdomain.in) where we show
@.Type Name / host Value TTL A @ 203.0.113.24 3600 CNAME www yourdomain.in 3600 A mail 203.0.113.24 3600 MX @ 0 mail. yourdomain.in 3600 Add the
mailandMXrows only if your email is hosted with us (then create an email account in cPanel for each address). If it stays with Google Workspace or Microsoft 365, leave the existing MX records alone. The same records in zone-file form:; website @ 3600 IN A 203.0.113.24 www 3600 IN CNAME yourdomain.in. ; only if your email is hosted with VirtualCloud mail 3600 IN A 203.0.113.24 @ 3600 IN MX 0 mail.yourdomain.in. -
Remove anything that conflicts
Delete other A records on
@orwww, any AAAA records left over from the old host, and URL forwarding or "parked page" settings. Visitors on IPv6 will follow an old AAAA record straight to the old server.Using Cloudflare? Add the records there and keep the proxy (the orange cloud) switched off until AutoSSL has issued your certificate. Then turn the proxy on and set SSL/TLS mode to Full (strict).
Planning the move ahead? Lower the TTL on the records you'll change to 300 a day before. The switch itself then reaches most visitors within minutes.
Check DNS propagation after pointing your domain
The quickest way is our DNS lookup tool, which asks two public resolvers at once so you can see whether the change has spread. From a terminal, the same checks look like this:
# Which nameservers does the registry hand out? (Option A)
dig +short NS yourdomain.in
# Where does the domain point, according to two public resolvers?
dig +short A yourdomain.in @1.1.1.1
dig +short A yourdomain.in @8.8.8.8
On Windows, use nslookup in Command Prompt or PowerShell:
nslookup -type=NS yourdomain.in 1.1.1.1
nslookup yourdomain.in 8.8.8.8
When both resolvers return your VirtualCloud nameservers or server IP, you're done. Within a few hours of that, AutoSSL issues a free certificate for the domain and www; to speed it up, follow Turn on free SSL and force HTTPS.
Moving an existing site? Check it on the new server before you change DNS by editing your computer's hosts file, or ask us for a temporary URL. Migrate your website covers both, and our free migration does it for you.
Troubleshooting
The old site or a parking page still appears
Your computer or internet provider is still using a cached answer. If the DNS lookup tool already shows the new values, clear your local cache or try the site on mobile data:
# Windows
ipconfig /flushdns
# macOS
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
The registrar says the nameserver is invalid
Copy the names from your welcome email rather than typing them, and check for a stray space, a trailing dot or http://. Most registrars need at least two nameservers, each in its own field. If the error persists, send us a screenshot in a ticket.
Email stopped arriving after the switch
The MX records from your old DNS provider weren't recreated. If your mail is with Google Workspace or Microsoft 365, add their MX (and SPF) records in cPanelZone Editor, and set cPanelEmail Routing to Remote Mail Exchanger so our server doesn't try to deliver locally. Values for each provider are in DNS records explained.
The browser says the connection is not private
The domain now reaches our server, but the free certificate hasn't been issued yet. AutoSSL only covers names that already point here, so check that both yourdomain.in and www.yourdomain.in resolve to us, then run it straight away from cPanelSSL/TLS Status; see Turn on free SSL.
The domain works with www but not without it (or the reverse)
One of the two records is missing or points elsewhere. You need an A record on @ and either an A record or a CNAME on www. Compare both names in the DNS lookup tool.
Was this guide helpful?Your answer stays in this browser; nothing is sent unless you write to us below.
Related guides
All 16 guidesDomain still not resolving? Ask an engineer.
Tickets and email are answered 24/7 in English and Hindi. Include your domain name and what you changed, and we'll take it from there.