Skip to main content
MotherHosting

Edit DNS records: A, CNAME, MX and TXT

Find out where the DNS records of your domain are kept, what A, CNAME, MX and TXT records do, and how to edit them in cPanel.

Last updated 3 min read

DNS records tell the internet where the website and the mail of a domain live. You edit them when an outside service asks you to add a record, or when you move a website or mail.

First find where your records are kept

DNS records are kept at the nameservers your domain uses, and they can be edited only there.

  • The domain uses the nameservers of your hosting with us. They are shown on your hosting service page under Nameservers. Edit the records in cPanel, in Zone Editor, as described below.

  • The domain uses other nameservers. Edit the records in the control panel of the company that runs those nameservers. A change in cPanel has no effect for this domain.

Not sure which it is? For a domain registered with us, open My domains, choose the domain and look at the Nameservers card. That card sets which nameservers the domain uses; see Change your domain's nameservers. It does not edit single records.

What the record types do

  • A points a name to the IP address of a server. Your website opens through this record.

  • CNAME makes one name another name's alias, for example www for the main domain, or a subdomain for an outside service.

  • MX names the server that receives mail for the domain. Each MX record has a priority number; the lowest number is tried first.

  • TXT holds a line of text. It is used to prove to an outside service that the domain is yours, and for rules about who may send mail in the name of the domain.

Edit a record in Zone Editor

  1. Log in to cPanel.

  2. Open Zone Editor.

  3. Press Manage next to the domain.

  4. To add a record, press Add Record, choose the type, fill in the name and the value, and press Save Record.

  5. To change a record, press Edit in its row, change the value and save. To remove one, press Delete.

Type the value exactly as the service that asked for it gave it to you.

Good to know

  • Write down the old value before you change a record, so you can put it back.

  • cPanel creates the records for your website and mail by itself. Change only the record you were asked to change: a wrong A or MX record takes the website or the mail offline.

  • A name that has a CNAME record cannot have other records as well.

  • A change needs time to reach everyone; see Why DNS changes take time.

If it does not work

Check that you edited the records in the right place, as described at the top, and compare the name and the value letter by letter. If you are not sure where your records are kept, or a record does not do what it should, open a ticket in Support (department Technical, category DNS). Tell us the domain, the record and the value you were asked to set.

Still need help?

Open a ticket and our support team will help you. We will see which article you read.

Open a ticket

To order, contact us

Tell us the plan or domain you want. We set up your order and send you the invoice.