How Can I Manually Edit the DNS Zone in WordPress? A Step-by-Step Guide

Introduction

If you have ever wondered how your website name like “www.yourwebsite.com” actually finds its way to the right server on the internet, the answer lies in something called the DNS Zone. DNS stands for Domain Name System, and it works like a phone book for the internet. Instead of storing names and phone numbers, it stores domain names and their matching server addresses.

This guide will walk you through everything you need to know about DNS zones in WordPress, step by step, in plain and simple language. Whether you are a complete beginner or someone with basic website experience, by the end of this article you will understand exactly how to manually edit your DNS zone with confidence.

What Is a DNS Zone and Why Does It Matter?

Before jumping into editing, it is important to understand what a DNS zone actually is. Think of the internet as a huge city. Every building in that city has a specific address. When you want to visit a building, you look up the address in a directory. DNS works exactly like that directory.

A DNS Zone is a specific section of the DNS system that contains all the settings and records for a particular domain name. It tells the internet where to find your website, where to send emails for your domain, how to verify your identity for security purposes, and how to handle various types of traffic that come to your domain.

For example, if your domain is “mywebsite.com”, your DNS zone holds records that say:

  • The main website is hosted on server with IP address 192.168.1.1
  • Emails for @mywebsite.com go through mail.mywebsite.com
  • Google has verified that we own this domain

Editing your DNS zone is necessary when you migrate your website to a new hosting provider, set up a custom email like [email protected], add SSL certificates or domain verification, connect services like Google Workspace, Cloudflare, or a CDN, or troubleshoot website accessibility issues.

Understanding DNS Record Types

A DNS zone is made up of different types of records, and each record serves a specific purpose. Before you start editing, you need to know what these records mean. Here is a clear breakdown of the most common DNS record types you will encounter:

A Record (Address Record)

This is the most fundamental DNS record. An A record maps your domain name to an IPv4 address (a numerical address that looks like 192.168.1.100). When someone types your domain into their browser, the A record tells the browser which server to connect to. Most websites have at least one A record. If your domain points to www.yoursite.com and that resolves to a server IP, the A record is what makes that connection work.

AAAA Record (IPv6 Address Record)

Similar to the A record, but for IPv6 addresses, which are the newer, longer format of internet addresses (they look like 2001:0db8:85a3:0000:0000:8a2e:0370:7334). As the internet evolves, more servers are using IPv6. If your hosting provider supports IPv6, you may need to add an AAAA record.

CNAME Record (Canonical Name Record)

A CNAME record is like a nickname or alias. Instead of pointing to an IP address directly, it points one domain name to another domain name. For example, www.yourwebsite.com might be a CNAME that points to yourwebsite.com. This is useful when you want multiple subdomains to point to the same place without having to update each one individually when the IP address changes.

MX Record (Mail Exchange Record)

MX records control where emails for your domain are delivered. If you want emails sent to [email protected] to arrive in a specific mail server, you set that up using MX records. Each MX record also has a priority number. The lower the number, the higher the priority. If your primary mail server is unavailable, email is delivered to the server with the next lowest priority number.

TXT Record (Text Record)

NS Record (Name Server Record)

NS records tell the internet which name servers are authoritative for your domain. In other words, they say “the official DNS information for this domain is held on these servers.” When you register a domain and connect it to a hosting provider, you typically update the NS records to point to your hosting provider’s name servers.

SOA Record (Start of Authority Record)

The SOA record is automatically created for every DNS zone and contains administrative information about the zone itself, such as the primary name server, the email address of the domain administrator, and timing values that control how DNS data is refreshed. You rarely need to manually edit this record.

SRV Record (Service Record)

SRV records specify the location of specific services on your domain. For instance, if you are running VoIP (voice over internet) or certain chat services, you might need to add SRV records. These are less common for typical WordPress sites but important for specific integrations.

Where Are DNS Zone Settings Managed?

One thing that confuses many beginners is understanding where DNS settings are actually controlled. The answer depends on how your domain and hosting are set up. There are three main scenarios:

Scenario 1: Domain Registrar Manages DNS

This is the most common setup for beginners. Your domain registrar (the company where you bought your domain, such as GoDaddy, Namecheap, or Google Domains) also manages your DNS. You log in to your registrar account, go to the DNS management section, and make changes there. Examples include GoDaddy DNS Manager, Namecheap Advanced DNS, and Google Domains DNS settings.

Scenario 2: Hosting Provider Manages DNS

Some hosting providers like Bluehost, SiteGround, or HostGator manage DNS for you when you point your domain’s name servers to them. In this case, you log in to your hosting control panel (often called cPanel) and manage DNS records from within the hosting dashboard.

Scenario 3: Third-Party DNS Provider

Some website owners use a dedicated DNS management service like Cloudflare. Cloudflare is extremely popular because it acts as a middleman between visitors and your server, providing speed and security benefits. In this case, your domain registrar’s name servers are changed to point to Cloudflare, and all DNS management happens inside your Cloudflare dashboard.

The key point is: to edit your DNS zone, you need to know where your DNS is currently being managed. If you are unsure, log in to where you bought your domain and look at what name servers are listed. Those name servers will tell you who is managing your DNS.

Before You Start: Important Precautions

Editing DNS settings affects how your entire website and email work. A small mistake can temporarily take your website offline or break your email. Before making any changes, follow these important precautions:

  1. Take a Screenshot or Export Your Current DNS Settings. Before changing anything, capture your existing DNS records. Most DNS management interfaces have an export option, or you can simply take screenshots. This way, if something goes wrong, you can restore your original settings.
  2. Make Changes During Low-Traffic Hours. If your site has regular visitors, make DNS changes during off-peak hours such as late at night or early morning to minimize disruption.
  3. Only Change What You Need to Change. Do not delete or modify records you do not understand. Stick to the specific records you need to add or update.
  4. Keep Your Login Credentials Ready. Make sure you have access to both your domain registrar and your hosting provider accounts before starting.

How Can I Manually Edit the DNS Zone in WordPress? Step-by-Step

Now we get to the heart of this guide. The process is slightly different depending on where your DNS is managed, but the core steps are very similar. Below is a complete walkthrough for the most common setups.

Method 1: Editing DNS via Your Domain Registrar (e.g., Namecheap)

Namecheap is one of the most popular domain registrars and has a clean, beginner-friendly DNS management interface. Here is how to edit your DNS zone through Namecheap:

Step 1: Log In to Your Namecheap Account

Go to namecheap.com and log in with your username and password. Once you are inside the dashboard, click on the “Domain List” option in the left-hand sidebar. This will show you all the domains registered under your account.

Step 2: Open the Domain Management Panel

Find the domain you want to edit and click the “Manage” button next to it. This opens the domain management screen.

Step 3: Go to Advanced DNS

At the top of the domain management page, you will see several tabs such as Details, Contacts, Nameservers, and Advanced DNS. Click on the “Advanced DNS” tab. This is where all your DNS records are stored and can be edited.

Step 4: View Your Existing Records

You will see a table showing all current DNS records for your domain. Each row represents one record and shows the Type (A, CNAME, MX, etc.), the Host (such as @ for the root domain or www for the subdomain), the Value (the IP address or destination), and the TTL (Time to Live, which controls how long the record is cached).

Step 5: Add a New DNS Record

To add a new record, scroll down to the section that says “Add New Record” and follow these steps:

  • Select the Record Type from the dropdown (for example, A, CNAME, MX, or TXT).
  • Enter the Host value. Use @ to represent the root domain (yourwebsite.com) or type a subdomain name like “www” or “mail”.
  • Enter the Value. For an A record, this is the IP address. For a CNAME, it is the domain name it should point to. For an MX record, it is the mail server address.
  • Set the TTL. For most purposes, the default setting or “Automatic” works fine.
  • Click the green checkmark or Save button to save the new record.

Step 6: Edit an Existing Record

To edit an existing record, simply click the edit icon (usually a pencil icon) next to the record you want to change. Make your updates and click Save.

Step 7: Delete a Record

To delete a record, click the delete icon (usually a trash can icon) next to the record. Be careful when deleting records as this can cause your website or email to stop working if the wrong record is removed.

Method 2: Editing DNS via cPanel (Hosting Provider)

cPanel is the most widely used hosting control panel in the world. Many hosting providers like Bluehost, HostGator, and A2 Hosting give you access to cPanel where you can manage DNS zones directly. Here is how to do it:

Step 1: Log In to cPanel

Your hosting provider will give you a cPanel login URL that usually looks like yourdomain.com/cpanel or cpanel.yourdomain.com. Log in using the credentials provided by your host.

Step 2: Find the DNS Zone Editor

Inside cPanel, scroll down to find the “Domains” section. You will see an option called “Zone Editor” or sometimes “DNS Zone Editor” or “Advanced DNS Zone Editor” depending on the cPanel version. Click on it.

Step 3: Select Your Domain

If you have multiple domains in your hosting account, you will see a list of domains. Click the “Manage” button or the domain name you want to edit.

Step 4: View and Edit Your DNS Records

You will see all DNS records for that domain. You can filter by record type using tabs at the top of the page. To add a new record, click the “Add Record” button. Fill in the Name (the subdomain or @ for the root), the TTL, the Type, and the Record information (such as an IP address), then click “Add Record” to save.

Step 5: Edit or Delete Existing Records

Each record in the list has an “Edit” and a “Delete” link. Click “Edit” to modify a record and update the values, then click “Save Record” to confirm. Click “Delete” to permanently remove a record. Always double-check before deleting.

Method 3: Editing DNS via Cloudflare

Cloudflare is a popular choice because it not only manages DNS but also provides a layer of security and performance improvements. If you are using Cloudflare, follow these steps:

Step 1: Log In to Cloudflare

Go to cloudflare.com and log in to your account. You will land on the Cloudflare dashboard showing all your connected websites.

Step 2: Select Your Website

Click on the website domain you want to manage. This opens the site-specific settings panel.

Step 3: Go to the DNS Section

In the left sidebar, you will see a menu with different options. Click on “DNS” and then select “Records”. This will display all your DNS records in a clean, organized interface.

Step 4: Add or Edit Records

To add a new record, click the blue “Add record” button. Choose the record type from the dropdown, fill in the required fields, and click “Save”. To edit an existing record, click the “Edit” button next to it, make your changes, and click “Save”.

Step 5: Understand the Proxy Toggle

Cloudflare has a unique feature represented by an orange cloud icon next to each DNS record. When this icon is orange (proxy enabled), traffic to your site goes through Cloudflare’s network, providing security and speed benefits. When the icon is gray (DNS only), traffic goes directly to your server without Cloudflare’s proxy. For most A and CNAME records pointing to your WordPress site, you want the orange cloud enabled. For certain services like mail or FTP, you may need to set the record to DNS only.

Common DNS Editing Scenarios for WordPress Users

Now that you understand how to access and edit DNS records, let us look at some of the most common situations where WordPress site owners need to edit their DNS zone.

Pointing Your Domain to a New Hosting Server

When you move your WordPress site from one hosting provider to another, you need to update your A record to point to the new server’s IP address. Here is how:

  1. Get the new server’s IP address from your new hosting provider. It will look something like 104.21.35.78.
  2. Log in to your DNS management panel (registrar, cPanel, or Cloudflare).
  3. Find the A record that points to your root domain (Host value should be @ or your domain name).
  4. Edit the record and replace the old IP address with the new one.
  5. Also update the www A record or CNAME if it exists.

Setting Up a Professional Email Address

To use a custom email like [email protected] with Google Workspace or Microsoft 365, you need to add or update your MX records. Your email provider will give you the exact MX records to add. Generally the process is:

  1. Delete or modify any existing MX records pointing to your old mail server.
  2. Add the new MX records provided by your email service. For Google Workspace, this includes multiple records with different priorities.
  3. Add any required TXT records for SPF or DKIM verification.
  4. Wait for DNS propagation and then verify the setup in your email service dashboard.

Verifying Domain Ownership for Google Search Console

Google Search Console is a free tool that helps you monitor how your WordPress site performs in Google Search. When you add your site to Search Console, Google asks you to verify that you own the domain. One of the easiest ways to do this is through a TXT record. Here are the steps:

  1. In Google Search Console, choose the DNS TXT record verification method.
  2. Copy the TXT record value provided by Google (it looks like google-site-verification=xxxxxxx).
  3. Go to your DNS management panel and add a new TXT record.
  4. Set the Host to @ (root domain) and paste the verification string in the Value field.
  5. Click Save, wait a few minutes, then click Verify in Google Search Console.

Adding a Subdomain to Your WordPress Site

If you want to create a subdomain like blog.yourwebsite.com or shop.yourwebsite.com, you need to add a new A record or CNAME record. Here is how to add a subdomain pointing to the same server as your main website:

  • Add a new A record with the Host set to the subdomain name (for example, “blog”) and the Value set to your server’s IP address.
  • Alternatively, add a CNAME record with the Host set to the subdomain name and the Value set to your main domain (yourwebsite.com).
  • After DNS propagates, also set up the subdomain in your hosting account and WordPress installation.

Understanding TTL (Time to Live) and DNS Propagation

Every DNS record has a TTL value, which is measured in seconds. TTL tells DNS resolvers (the servers that look up DNS information on behalf of users) how long they should cache (store) the DNS record before checking for an update.

For example, if your A record has a TTL of 3600, that means DNS resolvers will keep a cached copy of that record for 3600 seconds (one hour) before checking for changes. This is why DNS changes do not take effect instantly, because many DNS servers around the world are still serving the old cached version.

Tips for Managing TTL Values

  • Use DNS Checker Tools: Websites like dnschecker.org or whatsmydns.net let you check whether your DNS changes have propagated worldwide. Enter your domain name and record type to see the status from different locations globally.

Editing DNS Using WordPress.com (Hosted WordPress)

If you are using WordPress.com (the hosted platform, not the self-hosted WordPress.org software), the DNS management process is slightly different, especially if you have purchased a domain through WordPress.com.

Managing DNS on WordPress.com

  1. Log in to your WordPress.com account.
  2. Go to My Sites and select the site you want to manage.
  3. In the left sidebar, click on Upgrades and then Domains.
  4. Click on your domain name.
  5. Select the option for Name Servers and DNS, then choose DNS Records.
  6. From here, you can add, edit, and delete DNS records similar to any other registrar interface.

Note that WordPress.com has some limitations on DNS editing for free and lower-tier plans. If you need full DNS control, you may need a Business or Commerce plan, or you can transfer your domain management to a third-party registrar.

Troubleshooting Common DNS Problems

Even experienced website owners sometimes run into problems after making DNS changes. Here is a guide to some of the most common issues and how to resolve them:

Website Is Not Loading After DNS Change

This is almost always a DNS propagation issue. Wait at least 24 to 48 hours before troubleshooting. You can use a tool like dnschecker.org to see if your new DNS records are visible from different parts of the world. If you are impatient, try clearing your browser’s cache or using a different device or network to check. Also, try flushing your local DNS cache by running the command ipconfig /flushdns in Windows Command Prompt or sudo dscacheutil -flushcache on Mac.

Emails Are Not Working After DNS Changes

If you changed your MX records and email has stopped working, first verify that the MX records were entered correctly. Check the priority numbers, make sure there are no typos in the mail server address, and confirm that the new records have propagated. Use an MX lookup tool like mxtoolbox.com to check your current MX records from the internet’s perspective. If everything looks correct but email still does not work, contact your email service provider’s support.

SSL Certificate Errors After DNS Change

CNAME and Root Domain Conflict

A common technical issue is that CNAME records cannot be used for the root domain (the @ or bare domain like yourwebsite.com). CNAME records can only be used for subdomains like www.yourwebsite.com. If you try to add a CNAME for the root domain, some DNS providers will give you an error. The solution is to use an A record for the root domain and a CNAME for the www subdomain. Some advanced DNS providers like Cloudflare offer a special CNAME-like record called CNAME Flattening or ALIAS records that allow this at the root level.

Best Practices for Managing DNS Zones in WordPress

Good DNS management is not just about knowing how to add records. It is about maintaining a clean, organized, and secure DNS setup over time. Here are the best practices every WordPress site owner should follow:

  1. Keep Your DNS Records Clean. Over time, you may accumulate old or unused DNS records from services you no longer use. Review your DNS records periodically and remove any that are no longer needed. Unused records can sometimes cause confusion or conflicts.
  2. Document Every Change You Make. Keep a log of every DNS change you make, including what was changed, why it was changed, and when. This documentation will be invaluable if you ever need to troubleshoot a problem or reverse a change.
  3. Use a Reputable DNS Provider. Your DNS provider’s reliability directly affects your website’s uptime. If their DNS servers go down, your website becomes unreachable. Use a reputable provider with a proven track record of high availability. Cloudflare’s free DNS is considered one of the best options for reliability and speed.
  4. Enable DNSSEC When Available. DNSSEC (DNS Security Extensions) adds a layer of authentication to DNS responses, helping to prevent a type of attack called DNS spoofing or cache poisoning, where an attacker tricks DNS servers into directing traffic to a malicious website. Many registrars and DNS providers now support DNSSEC with a simple toggle switch.
  5. Monitor Your DNS with Alerts. Consider setting up monitoring alerts using tools like UptimeRobot or StatusCake. These tools can alert you immediately if your website becomes unreachable, which could be caused by a DNS misconfiguration.

Using WordPress Plugins to Assist with DNS Management

While DNS itself is managed outside of WordPress (at the registrar or hosting level), there are some WordPress plugins and tools that can make the overall process easier or give you visibility into your DNS setup.

Really Simple SSL

This plugin does not directly edit DNS records, but it helps you configure SSL on your WordPress site after DNS changes are made. It detects your SSL certificate and automatically redirects your site from HTTP to HTTPS, which is important after pointing your domain to a new server.

Cloudflare Plugin for WordPress

Health Check & Troubleshooting

This official WordPress plugin provides diagnostic information about your WordPress installation, including server configuration details. While not specifically a DNS tool, it can help you confirm your server’s IP address and other technical details that are relevant when troubleshooting DNS issues.

A Real-World Example: Migrating a WordPress Site with DNS Updates

To bring everything together, here is a real-world walkthrough of what the DNS editing process looks like when migrating a WordPress website from one host to another.

Imagine you have a WordPress website at myrestaurant.com hosted on Host A. You want to move it to Host B because Host B offers better performance and pricing. Here is exactly what you would do:

  1. Prepare the New Hosting Environment: Set up your WordPress site on Host B. Most hosting providers have a migration tool or you can use a plugin like Duplicator or All-in-One WP Migration to transfer your site files and database.
  2. Get the New Server IP: Host B gives you a new server IP address, for example 185.199.108.153.
  3. Lower Your TTL: Log in to your DNS management panel and lower the TTL on your A records to 300 seconds. Wait 24 hours for this lower TTL to propagate.
  4. Test the New Site Using Hosts File: Before changing DNS, test your site on the new server by temporarily editing your computer’s hosts file to point myrestaurant.com to the new IP address. This lets you browse the site on the new server without affecting anyone else.
  5. Update the A Records: Edit the A record for @ (root domain) from the old IP address to 185.199.108.153. Also update the A record or CNAME for www.
  6. Monitor Propagation: Use dnschecker.org to track how the new DNS records are spreading worldwide.
  7. Verify SSL and Email: Once the site is fully pointing to the new server, verify that the SSL certificate is working (look for the padlock icon in the browser) and send a test email to confirm email delivery is working.
  8. Increase TTL: Once everything is confirmed working, increase the TTL on your A records back to 3600 or higher.

Conclusion

Managing your DNS zone might feel intimidating at first, but once you understand what each record type does and follow the step-by-step process described in this guide, it becomes a straightforward task. The key is to always know where your DNS is currently managed, make changes methodically, document everything, and be patient while waiting for propagation.

Whether you are pointing your WordPress site to a new hosting server, setting up professional email, verifying domain ownership, or connecting third-party services, DNS zone management is a fundamental skill for any website owner. With the knowledge from this guide, you are now equipped to handle DNS changes confidently and safely.

Remember to always take a backup of your existing DNS settings before making changes, and do not hesitate to reach out to your hosting provider or domain registrar’s support team if you get stuck. Most providers are happy to help guide you through DNS changes specific to their platform.

Now that you know the answer to the question “How Can I Manually Edit the DNS Zone in WordPress?”, go ahead and take control of your domain’s DNS settings with confidence!

Scroll to Top