Home / Hosting / How to Change DNS on Hosting: A Step-by-Step Guide for Website Owners
devmohsin143
Table of Contents

When launching a new website, migrating to a faster server, or setting up a professional email address, you will eventually need to learn how to change DNS on hosting accounts. The Domain Name System (DNS) acts as the phonebook of the internet, converting human-friendly domain names like example.com into machine-readable IP addresses like 192.0.2.1.

Modifying these records can seem intimidating. A single mistake can take your website offline or disable your business emails. However, by understanding the mechanics of how DNS works and following a structured, cautious approach, you can successfully change DNS records and update nameservers without any service interruption.

In this step-by-step tutorial, we will demystify the DNS settings panel, explain the critical difference between nameservers and individual records, and guide you through safe editing practices and troubleshooting techniques.

Nameservers vs. DNS Records: What is the Difference?

Before you log into your hosting dashboard, it is vital to understand the difference between changing your nameservers and editing individual DNS records. Mixing these up is one of the most common mistakes website owners make.

What are Nameservers?

Nameservers (typically formatted as ns1.yourhost.com and ns2.yourhost.com) tell the entire internet where your DNS records are managed. When you buy a domain name, it points to the registrar’s default nameservers. If you want to point your entire domain and all its subdomains to a new web host, you usually change nameservers at your registrar to point to your hosting provider’s servers. This delegates DNS management authority to your hosting account.

What are Individual DNS Records?

Individual DNS records live inside the DNS zone of whichever company controls your nameservers. If your domain’s nameservers point to Bluehost, you must edit your individual records (like A, CNAME, or MX records) within Bluehost’s DNS Zone Editor. Individual records allow you to point different parts of your domain to different places. For example, your website can live on one server (via an A Record) while your email is processed by Google Workspace (via MX Records).

FeatureNameservers (NS)Individual DNS Records (A, CNAME, MX, TXT)
Core PurposeDeclares which server holds the authoritative DNS instructions.Directs specific traffic (web, email, security files) to individual servers.
Where to EditDomain Registrar (where you bought the domain).The active DNS Host (determined by your nameservers).
Common Formatns1.provider.com, ns2.provider.comIP addresses, aliases, text strings.
Propagation SpeedSlowest (typically 24 to 48 hours).Faster (typically 1 to 4 hours, depending on TTL).

The Pre-Flight Checklist: Preparing for DNS Changes

Because DNS changes take time to propagate across the globe, planning ahead prevents costly mistakes and extended downtime. Before modifying any DNS settings, follow this preparation list:

  • Back Up Existing Records: Take a screenshot of your current DNS zone file or export it. This acts as your absolute safety net if you need to perform a rapid rollback.
  • Verify the Active DNS Provider: Use a tool like WhatsMyDNS.net to check which nameservers are currently authoritative for your domain. If your nameservers point to Cloudflare, changing records inside Hostinger or Bluehost will have zero effect. You must edit them in Cloudflare.
  • Lower the Time to Live (TTL): If you have access, lower the TTL of the records you plan to change to 300 seconds (5 minutes) at least 24 hours prior to the migration. This forces servers worldwide to clear their cached records faster, ensuring your upcoming changes update almost instantly.
  • Identify Your Destination Details: Have your target server IP (for A records), mail destination servers (for MX records), or verification strings (for TXT records) copied and ready in a text editor.

Step-by-Step Guide: How to Change DNS on Hosting Panels

Most modern web hosts use control panels such as cPanel, Plesk, or custom proprietary dashboards (like those found in Hostinger, SiteGround, or Bluehost). While the user interfaces vary, the fundamental steps on how to change DNS on hosting accounts remain the same.

Step 1: Log Into Your Active DNS Management Dashboard

Identify whether your nameservers point to your Domain Registrar or your Web Host. Log into the system that is currently authoritative.

Step 2: Locate the DNS Zone Editor

Navigate to the management area. Search for terms such as DNS Zone Editor, DNS Manager, Manage DNS Settings, or Advanced DNS.

Step 3: Choose Your Action (Add, Edit, or Delete)

Once inside the zone editor, you will see a list of your existing domain records. Select the action that fits your current objective:

A. Point Your Domain to a New Website Server (A Record)

To change where your website is hosted, you need to update your main A Record. The host value is typically your root domain (represented by @) or your full domain name (e.g., example.com).

  1. Find the existing A record pointing to your old server IP.
  2. Click Edit.
  3. Replace the old IP address with your new web hosting server IP address (e.g., 192.0.2.55).
  4. Set the TTL to 3600 (1 hour) or lower, and click Save.

B. Connect a Subdomain or Alias (CNAME Record)

CNAME records map aliases to actual hostnames. For example, pointing www.example.com to example.com or connecting an external landing page tool.

  1. Click Add Record and choose CNAME from the dropdown menu.
  2. In the Host/Name field, enter the prefix (e.g., www or promo).
  3. In the Points To/Target field, enter the destination hostname (e.g., domains.customplatform.com).
  4. Click Save Record.

C. Configure Custom Email (MX Records)

If you are migrating your email services (for instance, moving to Google Workspace or Microsoft 365), you will need to replace your hosting provider’s default MX records. Warning: Changing MX records incorrectly will immediately stop you from receiving emails.

  1. Locate and delete any pre-existing local MX records to prevent routing conflicts.
  2. Click Add Record and select MX.
  3. Enter the priority (e.g., 1, 5, or 10) and the mail server destination (e.g., ASPMX.L.GOOGLE.COM).
  4. Repeat for all mail servers provided by your email host.

D. Add Domain Verifications and Security Policies (TXT Records)

TXT records do not route traffic; they store metadata. They are primarily used for site verification (like Google Search Console) and email security framework configurations (SPF, DKIM, and DMARC).

When you modify TXT records, ensure you do not overwrite existing records unless specifically instructed. For SPF, you should have only one SPF record per domain; combine multiple policies into a single TXT string rather than creating duplicate records.

Verification and Checking DNS Propagation

After you click save, your job isn’t quite done. When you change DNS records, those updates do not instantly reflect for every internet user. This delay is known as DNS propagation.

DNS servers around the world cache (save) records to speed up internet browsing. When you modify settings, those servers wait for your TTL (Time To Live) counter to expire before querying your authoritative nameservers for the updated details.

How to Check If Your Changes are Active

Do not rely purely on reloading your browser, as your local ISP and browser cache will often show the old site. Instead, use independent public lookups:

  • DNS Checker Tools: Open DNSChecker.org, input your domain, select the record type (e.g., A, MX, or TXT), and hit search. This tool queries global servers in real-time, showing you a map of where the new records have propagated.
  • Command Line (Terminal): Advanced users can query records directly. Open Terminal (Mac/Linux) or Command Prompt (Windows) and type:
    nslookup -type=A example.com
    or
    dig example.com A

Common DNS Mistakes and How to Avoid Them

“DNS is simple in theory, but minor typos can halt your business operations overnight. Double-checking values before hitting save is your best defense.”

To protect your site and emails from breaking, watch out for these frequent mistakes:

  • Duplicate SPF Records: Having multiple SPF TXT records will invalidate your email authentication, causing your outgoing emails to land directly in spam folders. Always merge SPF records.
  • Missing Trailing Dots: In older cPanel systems, CNAME targets must end with a dot (e.g., ghs.googlehosted.com.). Omitting it can append your domain name to the end, resulting in broken URLs (like ghs.googlehosted.com.example.com).
  • Leaving Old Records Active: If you add a new A record but leave your old A record active, your visitors will experience intermittent connections, with some landing on the old server and others on the new server.
  • Incorrect TTL Values: Setting TTL values too high (e.g., 86400 seconds / 24 hours) makes future updates or emergency rollbacks extremely slow to take effect.

Emergency Rollback Protocol: What to Do If Things Go Wrong

If your website goes offline, throws secure connection warnings (SSL errors), or if emails bounce after you modify your DNS settings, follow this recovery plan:

  1. Do Not Panic: Take a deep breath. DNS is easily reversible.
  2. Refer to Your Backup: Pull up the screenshots or backup text files you saved during the preparation phase.
  3. Revert the Values: Change the incorrect values back to their original states.
  4. Keep TTLs Low: Ensure the reverted records have low TTL values so they propagate back to safety as fast as possible.
  5. Flush Local Cache: Clear your browser cache and flush your operating system DNS cache. In Windows, run ipconfig /flushdns in Command Prompt.

Conclusion

Learning how to change DNS on hosting accounts is a foundational skill for every modern website owner. Whether you are updating nameservers to connect a high-performance host or carefully adding TXT records to protect your brand emails, taking a meticulous, structured approach ensures a seamless transition.

Always remember to back up your existing settings, verify propagation using global tools, and pay careful attention to TTL values. By following the best practices outlined in this guide, you can comfortably manage your digital real estate with confidence and zero downtime.

Related Blogs

Learn how to improve WordPress website speed safely. Actionable guide covering image optimization, caching, database cleanup, and hosting without breaking your site.
Confused by speed test scores? Learn how to accurately interpret website speed test results, analyze Core Web Vitals like LCP, INP, CLS, and TTFB, and fix bottlenecks efficiently.
Master the exact workflow for testing WordPress website speed. Learn how to use PageSpeed Insights, GTmetrix, and Core Web Vitals to accurately diagnose performance bottlenecks.