Skip to content
0850 554 5439 [email protected]

What do you need help with?

Search the guides and tutorials, or browse the categories.

Connecting your domain to hosting: nameservers (NS) or an A record?

Shared Hosting 15 views Step-by-step guide Last verified: Markdown
What you will learnThe two ways to connect your domain to your Gyro hosting account, when to choose which, where to find the values you need in cPanel, what to enter in your registrar's panel and how to check the connection is complete.
Time10 minutes (plus propagation time)

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?

Two ways: point the nameservers at the hosting (all DNS moves to cPanel), or leave DNS where it is and point just the A record at the server IP.
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.)
Email 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
Info

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)

  1. Log in to cPanel (client area → Services → your hosting service → Login to cPanel).
  2. Look at the General Information box on the right of the home screen.
  3. Note the address on the Shared IP Address line. This is the address for your A record.
The IP address for your A record: General Information → Shared IP Address on the cPanel home screen (the address shown is an example).

Nameserver names (for Method 1)

  1. In cPanel, open Zone Editor in the Domains group.
  2. Press Manage on your domain's row.
Zone Editor: manage the DNS records of every domain in your account here; press Manage for details.
  1. The Configured nameservers for this zone line at the top of the page shows two names (for example ns1.… and ns2.…). Note both names exactly.
The Manage screen: the top line shows the hosting nameservers (Method 1), the A record row shows the IP your site points to (Method 2). Names and IP are masked in the sample account.
Warning

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

  1. 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.
  2. Remove the current nameservers.
  3. Enter the two names you noted in section 3 in Nameserver 1 and Nameserver 2.
  4. Leave any remaining nameserver lines empty.
  5. Save.
The values to enter in your registrar's panel: either two nameservers or the A, CNAME (and, if needed, MX) records.

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.

Info

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:

  1. Open the A record for the domain itself (@ or an empty name) and set its value to the Shared IP Address from cPanel.
  2. Delete any other A record for the same name. Two different A records send visitors randomly to two servers.
  3. 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.
  4. 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.
  5. Save.

Step-by-step screenshots for adding and editing records in Gyro DNS are in L09 — Gyro DNS record management.

Warning

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

  1. In cPanel, open Track DNS in the Advanced group.
  2. Type your domain in the Domain Lookup box and press Look Up.
  3. If the A record in the result matches the Shared IP Address in cPanel, the pointing is done.
Track DNS → Domain Lookup: type your domain and press Look Up; if the result shows the server IP, 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.

Did you know?

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.
Was this helpful?

Thanks for your feedback!

Still Need Help?

The support team is here around the clock for anything you can't find in the knowledge base.