Home›Domains›Guide

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

Find out which record to use, where to edit it and which records not to remove.

Quick answer

Find out which record to use, where to edit it and which records not to remove.

Step-by-step instructions

  1. Step 01

    Locate your authoritative DNS provider by checking the domain's current nameservers.

  2. Step 02

    An A record maps a hostname to an IPv4 address. Use the IP specified by the hosting provider.

  3. Step 03

    A CNAME makes a hostname such as www an alias of another hostname, often a service's target address.

  4. Step 04

    TXT records commonly handle verification, email SPF information and other metadata.

  5. Step 05

    MX records direct incoming email. Deleting them may interrupt domain email.

  6. Step 06

    NS records delegate DNS service to nameservers; changing them switches where other DNS records are managed.

  7. Step 07

    Avoid putting a conflicting A and CNAME record on the same www hostname; follow your provider's DNS instructions.

  8. Step 08

    Record previous settings and allow DNS propagation after changes.

Before you finish: important checks

  • Domain record types are not interchangeable; use the exact instructions for the destination service.

Common problems and fixes

  • Site works, email stopped? Check whether MX/TXT records were lost in a nameserver migration.

Frequently asked questions

Does an SSL certificate live in DNS?

No, though DNS must generally verify/resolve correctly for managed TLS issuance.

Keep this in mind

WordPress, hosting and AI interfaces change. Check the service's current documentation before changing billing, domain DNS, security or important site settings. Rayhan Studio publishes educational help, not guaranteed results.