How to change DNS: guide for beginners
Last updated: 31 December 2025
Changing DNS: when and how
DNS changes are needed when switching hosting, setting up email, or activating a CDN. This guide explains how to do this.
Two types of DNS changes
Changing nameservers
You move complete DNS management to another party. Do this when:
- Switching to new hosting
- Activating Cloudflare or other CDN
- Centralizing DNS management
Changing individual records
You adjust specific settings while DNS management stays with the same party. Do this when:
- Pointing website to new server (A record)
- Configuring email (MX records)
- Verifying services (TXT records)
Changing nameservers
Step 1: Look up new nameservers
Your new hosting provider gives you nameservers, for example:
- ns1.hostingprovider.com
- ns2.hostingprovider.com
Step 2: Log in to your registrar
Log in to the party where your domain is registered.
Step 3: Find DNS/Nameserver settings
Look for:
- "DNS management"
- "Nameservers"
- "DNS servers"
Step 4: Replace nameservers
Replace current nameservers with the new ones. Save.
Step 5: Wait for propagation
DNS changes can take up to 48 hours to propagate worldwide, but usually it's done within a few hours.
Changing DNS records
Add/change A record
- Go to DNS management at your provider
- Find existing A records or click "New record"
- Fill in:
- Type: A
- Name: @ (for main domain) or subdomain
- Value: the IP address
- TTL: 3600 (or lower for tests)
- Save
Set up MX records
For email with external provider (Gmail, Microsoft 365):
- Remove existing MX records
- Add new MX records from your email provider
- Pay attention to priority (lower numbers = higher priority)
Add TXT record
For SPF, DKIM or domain verification:
- Choose record type TXT
- Name: @ (or specific subdomain)
- Value: the complete TXT string (including quotes if needed)
Troubleshooting
Changes not visible
- Wait for propagation (check via whatsmydns.net)
- Clear your local DNS cache
- Verify you're changing at the correct provider
Website not working after change
- Check if IP address is correct
- Check if server is configured for your domain
- See if SSL still works
Email not working
- Check MX records
- Wait at least 1 hour after change
- Verify SPF and DKIM records
Tips
- Note old settings before changing
- Lower TTL to 300 before major changes
- Test outside business hours
- Use DNS lookup tools to verify
Was this article helpful?
Compare hosting packages directly to find the best choice for your situation.
Related articles
What is web hosting? Explanation for beginners
Discover what web hosting is and how it works. Complete explanation about servers, domains and different hosting types for beginners.
What is VPS Hosting?
VPS hosting explained: what is a Virtual Private Server, who is it suitable for and what are the advantages compared to shared hosting?
What is an SSL Certificate?
Everything about SSL certificates: what is SSL, why do you need it and how do you recognize a secure website? Essential for every website.
What is Uptime in Web Hosting?
What does uptime mean in web hosting? Learn about uptime percentages, SLA guarantees and why 99.9% uptime is important for your website.
How much storage do I need for my website?
Discover how much disk space you really need for your website. Practical guide with examples per website type.