Connecting your domain to hosting: nameservers (NS) or an A record?
1. Why is this step needed?
Your hosting account is ready, but the internet doesn't yet know your domain lives on this server. When someone types ornekfirma.com, their browser learns which server to go to from DNS (the domain name system) records. In this guide we set those records to point to the Gyro hosting server.
No domain yet? Get one first: L16 — How to buy a domain. If you registered the domain in the same order as your hosting plan, its nameservers already point to the hosting server; you can skip the settings here and go straight to the check in section 6.
2. Two ways: which should I choose?
| Method 1: Nameservers (NS) | Method 2: A record | |
|---|---|---|
| What changes | All of the domain's DNS moves to the hosting server | Only the site's address points to the hosting server |
| Where you manage DNS records | cPanel → Zone Editor | At your current DNS provider (Gyro DNS, registrar, etc.) |
| The email accounts in cPanel work automatically | You set the MX record separately (or your existing email stays as it is) | |
| When to choose it | You don't deliberately manage DNS somewhere else (most people) | Your DNS holds records for other services you don't want to touch |
If your business email runs on another service (for example Gyro Business Mail) and your DNS is neatly set up in Gyro DNS, Method 2 is safer: you change only the site's record and your email is not affected.
3. Find the values you need in cPanel
Server IP address (for Method 2)
- Log in to cPanel (client area → Services → your hosting service → Login to cPanel).
- Look at the General Information box on the right of the home screen.
- Note the address on the Shared IP Address line. This is the address for your A record.
Nameserver names (for Method 1)
- In cPanel, open Zone Editor in the Domains group.
- Press Manage on your domain's row.
- The Configured nameservers for this zone line at the top of the page shows two names (for example
ns1.…andns2.…). Note both names exactly.
The nameserver names and IP address in the screenshot are masked for the sample account. Always use the values shown in your own cPanel; don't copy them from another guide or a forum.
4. Method 1: Change the nameservers
- Sign in to the panel of the company your domain is registered with.
- If your domain is registered with Gyro: client area → Services → your domain → nameserver setting.
- If it's with another company: the "Nameservers" or "DNS servers" setting in their panel.
- Remove the current nameservers.
- Enter the two names you noted in section 3 in Nameserver 1 and Nameserver 2.
- Leave any remaining nameserver lines empty.
- Save.
When nameservers change, DNS servers around the world pick up the new information gradually. This propagation usually finishes within a few hours; on some networks it can take 24–48 hours. During that time some visitors may see the old server and others the new one.
Once your nameservers point to the hosting, you manage your DNS records (A, CNAME, MX, TXT) in cPanel → Zone Editor. If you'd like to use Gyro DNS, the options for your hosting account's main domain are described in the hosting zones section of L08 — Move your domain to Gyro DNS.
5. Method 2: Point it with an A record
Wherever you manage your DNS (Gyro DNS, your registrar or another DNS provider), edit these records:
- Open the A record for the domain itself (@ or an empty name) and set its value to the Shared IP Address from cPanel.
- Delete any other A record for the same name. Two different A records send visitors randomly to two servers.
- Add a CNAME record for www whose value is your domain (
ornekfirma.com). If your provider doesn't allow a CNAME there, add an A record for www pointing to the same IP. - If you will use the email accounts on the hosting, set the MX record to the MX value shown in cPanel's Zone Editor. If your email is on another service, leave the MX record alone.
- Save.
Step-by-step screenshots for adding and editing records in Gyro DNS are in L09 — Gyro DNS record management.
For the free SSL certificate to be issued, both ornekfirma.com and www.ornekfirma.com must point to the hosting server. If you use a proxy or CDN in between, certificate validation may fail; see B16 for details.
6. Check the connection
- In cPanel, open Track DNS in the Advanced group.
- Type your domain in the Domain Lookup box and press Look Up.
- If the A record in the result matches the Shared IP Address in cPanel, the pointing is done.
Then open your domain in a browser. If you haven't uploaded a site yet, you may see an empty directory listing or a default page; that also shows the pointing works. To upload your site, continue with B14.
7. Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| The domain still opens the old site | Propagation in progress, or browser/OS cache | Wait a few hours; try from another network (for example mobile data). |
| Sometimes the old site opens, sometimes the new one | Two A records for the same name | Delete the old A record so only the hosting IP remains. |
Works with www but not without it (or the other way round) |
One of the records is missing | Make sure there is an A record for @ and a CNAME (or A) record for www. |
| The site opens but email doesn't arrive | An A record was used instead of NS and MX still points to the old place | If you will use email on the hosting, update the MX record (section 5, step 4). |
| The registrar says "invalid nameserver" | A typo, or a trailing dot or space | Copy the names again from the line in cPanel's Zone Editor. |
8. Frequently asked questions
NS or A record: which is better?
If you will use one hosting account and its email, changing nameservers is easiest: everything is managed in cPanel. If your DNS holds records for other services, an A record is safer because you change only the site's record.
How long does propagation take?
Usually a few hours; on some networks it can take 24–48 hours. That comes from how DNS works and cannot be sped up.
My domain is with another company. Do I have to move it to Gyro?
No. The domain registration can stay there; you just change the nameservers or the A record. If you do want to move it, see L17 — Domain transfer.
How do I connect an addon domain?
First add the domain to cPanel (B18), then use one of the two methods in this guide for that domain.
Will a DNS change take my site down?
Not if you use the correct values. During propagation some visitors may briefly see the old server, so keep your old hosting running until propagation is over.
Gyro DNS nameservers run in two separate locations, Istanbul and Germany; if one is unreachable, the other keeps answering. Details: L08.
Next steps
- Upload your site: B14 — Uploading a site with cPanel File Manager.
- No domain yet? Search for a domain.
Thanks for your feedback!
