WordPress DNS Records Explained: A, CNAME, MX and TXT

Understand which DNS records connect your WordPress website, handle email or verify a service, with a practical change worksheet and worked example.

DNS records tell different services what to do with your domain. An A record points a name to an IPv4 address; a CNAME points a name to another hostname; MX records direct incoming email; and TXT records can publish information used for verification and email authentication. Read the record’s purpose before changing its value. The instructions supplied by your actual host or email provider control the setup.

Illustration of a server tower connected to abstract website frames
Illustrative website infrastructure; use your own provider’s exact connection instructions.

Buying a domain does not automatically connect a website, move its files or preserve email. Those jobs may involve different companies. If you understand which record belongs to which service, a hosting change becomes a smaller, more manageable project.

This guide explains the labels you may see in a DNS dashboard. It does not supply a universal set of records. Use it alongside our domain connection checklist, which covers the overall preparation and verification process.

Find the dashboard that actually controls DNS

Start by recording three providers: the registrar where the name is registered, the authoritative DNS provider, and the company hosting WordPress. Add a fourth if email is hosted elsewhere. Sometimes one company performs all four jobs; sometimes it performs only one.

A registrar dashboard can display a DNS editor even when another provider’s nameservers are authoritative. Editing the inactive copy will not change the answer visitors receive. Check the domain’s current nameserver arrangement before assuming the editor you happen to have open is the right one.

Keep this note private. Record the provider names and account owners without copying passwords or verification tokens into a public document. If you need help locating the active DNS service, ask the registrar or host to identify it for the particular domain.

Read the fields before reading the acronyms

Most record editors show a type, name, destination or content, and TTL. The name identifies the part of the domain being configured. An interface may use an at sign for the root domain and a separate entry for www. Follow that interface’s rules about whether it expects a short label or full hostname.

The destination field changes meaning with the type. An A record expects an IPv4 address. A CNAME expects a hostname. Neither is a place to paste a complete web address with an https prefix and a page path.

TTL describes how long a DNS answer can be cached before it is checked again. Changing it is not a button that instantly empties every visitor’s existing cache. A provider may also offer features such as proxying or CNAME flattening. Those are provider features, not extra steps every WordPress owner needs.

A and AAAA records: an address for a name

An A record associates a name with an IPv4 address. An AAAA record does the corresponding job for IPv6. Obtain the supported values directly from the destination host. Do not copy an address from an unrelated tutorial, even if both sites use WordPress.

If a host asks you to update the root website record, establish whether there is also an existing IPv6 record. An old record can point some visitors toward a different destination. Have the host confirm the complete intended configuration rather than deleting entries simply because you do not recognize them.

WordPress itself is the publishing application. It does not give every independently hosted website the same DNS address. Your host may put many sites behind shared infrastructure or provide a special connection method. The product name alone cannot tell you the required values.

CNAME records: one hostname refers to another

A CNAME associates a name with another hostname. A host might use it for a www address or for a service-specific subdomain. Copy its target exactly from the provider’s instructions and check that the name field describes the correct subdomain.

Root-domain handling can vary by DNS provider because of features such as flattening. If your provider rejects the requested record, ask the host and DNS provider for the supported method. Do not create several competing entries while trying to make an error disappear.

Cloudflare’s DNS record reference explains the common types and its own interface behavior. Use that reference to understand terminology; use your provider’s connection instructions to determine your actual records.

MX records: where incoming domain email goes

MX records direct incoming email for a domain to its mail service. They are separate from the website’s A or CNAME connection. Moving WordPress to another host does not necessarily mean that your mailbox should move too.

Before a nameserver change, obtain the complete mail configuration from the email provider. Confirm the server names and priority values it requires. Keep a copy of the previous working setup and identify who can help if receiving mail stops.

Do not assume that one successful website visit proves email works. After the change, test incoming and outgoing mail through the service you actually use. A contact form notification is another delivery path and needs its own check.

TXT records: information other services can check

TXT records can publish service-verification information and email-related information. The name and content matter together. A verification record supplied by Search Console is not interchangeable with an email authentication record.

Some email systems also use CNAME records for parts of their authentication setup. That is another reason to follow the complete provider instructions instead of deciding a record’s purpose from its type alone.

Keep supplied values intact, including punctuation. Avoid adding duplicate authentication records to “be safe.” Ask the email provider how an existing configuration should be updated when another sending service is introduced. Do not publish your private dashboard screenshots just to show that verification succeeded.

A worked example: moving the website, keeping email

Imagine a fictional craft blog whose registration, DNS and email are already working. The owner wants to move the WordPress site to a different host while leaving the mailbox where it is. The destination host supports a records-based connection.

The owner first confirms that the new host has the correct website copy. Next, they obtain the exact root and www instructions and identify the current authoritative DNS dashboard. They save the existing zone and mark which entries belong to the mailbox and other services.

Illustrative planning sheet; these are tasks, not deployable record values
Item Decision to document Verification
Root website name Use the destination host’s supported address or connection method. The intended homepage loads over HTTPS.
www name Use the host’s required record and preferred-address arrangement. The www visit reaches the intended website.
Incoming email Retain the email provider’s required MX setup. A test message reaches the existing mailbox.
Email authentication Retain or update only under the mail provider’s instructions. The responsible provider confirms the intended setup.
Verification records Identify the services that still require them. Those services retain their expected verification status.

The owner changes the agreed website entries and records the time. If something fails, the worksheet shows what changed and which service needs investigation. This is much more useful than a note saying “I changed the domain.”

Choose nameservers or records deliberately

A nameserver change moves responsibility for the domain’s DNS zone. A change to selected website records can leave that responsibility where it is. Neither method is automatically better for every site.

If the destination host requires nameservers, prepare the complete zone there before switching. If it supports record changes, verify which records to edit at the active provider. Registration transfers and website migrations remain separate decisions.

Our domain versus hosting explanation helps separate those services. If your starting point is a free practice website, the SiteRubix move guide covers that particular project without assuming other hosts work the same way.

Finish with a result, not a screenshot of saved settings

Check the preferred HTTPS address, the alternate www or root version, an internal article, a contact route and domain email. Use the public site rather than relying only on a hosting preview. Record what passed and what remains unresolved.

If the website does not work, use our DNS-change troubleshooting guide to separate a DNS answer, host configuration, certificate issue and WordPress page problem. Avoid changing several layers at once.

You do not need to memorize every DNS record type to manage a small website. You need to identify the active provider, understand the purpose of the entries you are touching and verify the services those entries support. Keep the worksheet with your website recovery records so the next change starts with evidence.

Make the worksheet usable by someone else

Before an edit, ask a colleague to read your service map without an explanation. Can they tell which company controls DNS, which provider should receive a website question and which provider handles the mailbox? If they cannot, replace ambiguous notes such as “main account” with the actual service name.

Add a review date and a contact route for each service. Keep those details in your private project records. The purpose is not to give everyone account access; it is to prevent an absent owner or forgotten provider from turning a routine connection into an emergency.

After the connection works, update the worksheet with the final configuration and the checks completed. Mark an earlier export as a previous version instead of silently overwriting the only record of the change. That small habit makes your next hosting move easier to plan.

Browse the website guide library · Find useful website resources

We will be happy to hear your thoughts

Leave a reply

DIY Websites HQ
Logo