Knowledgebase / Domains and Security
How to Manage DNS A, CNAME, MX and TXT Records
Choose the right DNS record type, edit the authoritative zone and verify the result without disturbing unrelated website or email services.
Prerequisites
Confirm which provider serves the domain’s authoritative DNS. This may differ from the registrar, website host and email provider. Obtain the exact requested values from the service you are connecting and export or record the current zone before editing.
This guide changes individual records while retaining the current DNS provider. Changing registrar nameservers is a separate operation. A correct record entered into an inactive zone has no effect on public lookups.
Understand the record types
An A record maps a hostname to an IPv4 address. An AAAA record serves the corresponding IPv6 purpose. A CNAME aliases one name to another DNS name, rather than to a URL containing a path. An MX record identifies mail exchangers and their relative priorities. A TXT record carries text used by verification and mail-authentication systems.
For example, a provider may request an A record for the root domain, a CNAME for www, MX records for incoming mail and a TXT verification value. These roles are examples, not a set of records to copy into your account.
Step 1: Review the requested change
- Identify the exact name: root domain, www or another subdomain.
- Compare the current record type and value with the provider’s instruction.
- Check for a conflicting record at the same name.
- Record the old value and TTL so you can explain or reverse the change.
A CNAME normally cannot coexist with other record types at the same owner name. Some providers support special root-domain alias behavior, but that is provider-specific. Do not delete mail or verification records to force an incompatible record into place.
Step 2: Save the smallest change
In the authoritative DNS dashboard, edit or add only the required record. Follow the panel’s convention for relative names and root-domain notation. Check whether it automatically appends the domain so you do not create a doubled hostname.
For MX, use the mail provider’s exact targets and priorities. Lower numeric priority is preferred. For TXT, preserve the required value and the provider’s quoting behavior. Do not create multiple conflicting SPF policies. For a mail-service hostname, use the DNS-only behavior required by the provider rather than assuming an HTTP proxy can carry mail traffic.
Step 3: Verify public answers
Query the intended type, replacing example.com with your domain: nslookup -type=MX example.com or nslookup -type=TXT example.com. Compare authoritative answers and recursive-resolver results. A web page loading does not validate MX or TXT records.
TTL influences how long previous answers can remain cached. Lowering it after a change does not erase answers already cached under the old TTL. Avoid repeated edits that make it difficult to determine which answer visitors should receive.
Troubleshooting and expected results
If the record is absent, recheck the authoritative provider and exact owner name. If the wrong server still appears, inspect A and AAAA separately and allow existing caches to expire. If email breaks, compare MX and authentication records with the saved zone.
Success means the intended record resolves correctly and the connected service passes its own verification. Keep the change record and check that unrelated website and email functions still work.
Frequently asked questions
Does a CNAME accept a full website URL?
No. It points to a DNS name, not an https URL or a page path.
Does changing A move email too?
Not necessarily. Email routing depends on MX and associated records; review those separately.
Why is the dashboard correct but a lookup old?
The query may use a cached answer or a different authoritative zone. Check both before editing again.
Related guides and hosting options
Compare shared hosting against your application requirements. Confirm available tools and management responsibilities for your own account. For account-specific help, open a private support ticket with the domain, time and relevant redacted error.