When connecting a domain to a website or email, first determine whether the provider supplied an IP address, a hostname or verification text, then choose the corresponding DNS record. Before editing, confirm that you are in the currently delegated authoritative DNS zone and save the old records. Afterwards, check both authoritative servers and recursive resolvers to distinguish configuration errors from cached answers.
The general behavior below follows RFC 1034, RFC 1035 and RFC 2181, checked on 2026-11-28. Console fields and apex alias features vary by provider, so consult the interface and documentation in use.
Which values belong in common records?
| Type | Value and purpose | Configuration check |
|---|---|---|
| A / AAAA | IPv4 / IPv6 address respectively, resolving a name to an address | The address must belong to the target service; do not add AAAA merely for completeness if IPv6 is unavailable. |
| CNAME | Another domain name, identifying this name as an alias | Use a hostname, not an IP; ordinary A, MX or TXT data cannot share the same owner name. |
| MX | Numeric preference and mail exchanger hostname | Lower numbers are preferred; an ordinary MX target should be a hostname with address records, not a CNAME. |
| TXT | Text used for verification, SPF and other purposes | Different uses can coexist at one name, but multiple SPF policies for the same domain cause an SPF evaluation error. |
| NS | Authoritative name servers for a zone | Coordinate the parent delegation at the registrar with zone records; changing NS is a migration, not merely an A-record edit. |
| CAA | Certificate authority issuance authorization | Check the CA and relevant names; incorrect restrictions can prevent issuance or renewal. |
| SRV | Service name, priority, weight, port and target host | The consuming application must support SRV; it is not a general substitute for website or email configuration. |
For example, use A for a supplied IPv4 address and CNAME for a supplied alias target; do not put a hostname in an A value. Consoles often use @ for the zone apex and www for a subdomain, but check whether the interface appends the zone name or final dot automatically.
CAA authorization processing, including record lookup for the relevant name, is specified in RFC 8659. SRV fields and selection rules are specified in RFC 2782.
CNAME, MX and TXT constraints
Under RFC 2181 section 10, a CNAME owner cannot also contain ordinary data of other types; DNSSEC-related records are protocol exceptions. A zone apex must contain SOA and NS records, so it cannot directly have a standard CNAME. Some providers offer ALIAS, ANAME or CNAME flattening as product-specific implementations; these are not the same as publishing a standard apex CNAME. Check the provider's documentation and actual answers.
The sending mail server uses MX preference, choosing lower numbers first; multiple targets can have the same preference. If no MX exists, SMTP can fall back to the domain's A/AAAA records, so absence of MX does not explicitly refuse mail. Only after confirming the domain does not receive mail should you consider the single MX 0 . defined by RFC 7505. It cannot coexist with other MX records, and using the domain in sending addresses may also cause mail to be rejected.
Different TXT records can coexist at one name. Maintain one v=spf1 policy for that name and combine authorized senders in it, rather than deleting unrelated verification TXT records. One DNS character-string is limited to 255 octets; a TXT record can contain multiple strings, and how they are combined depends on the consuming protocol and console. For SPF, RFC 7208 specifies concatenation in order without automatically inserting spaces.
Change sequence and rollback
The diagram separates authoritative configuration from recursive caches: restoring the old configuration does not immediately remove a new answer already cached elsewhere.
- Confirm the current NS delegation with the registrar or parent zone, and open the corresponding provider's authoritative zone. Save the complete name, type, all values, preferences and TTL of affected records, and ensure you can restore them. If also migrating NS or enabling DNSSEC, prepare a separate migration plan.
- If time permits, lower the TTL of the existing record first and wait at least the original TTL before changing its value. This gives resolvers following normal caching semantics a chance to obtain the shorter TTL; a record that did not previously exist may also be subject to negative caching.
- Keep the old service available and change the record using the target provider's values. Check same-name conflicts, relative names, mail records and accidental deletion of unrelated TXT values.
- Query each authoritative server, then the recursive resolvers actually in use, and finally test the website or mail service itself. If authoritative data is wrong, check the zone and publication; if authoritative data is right but recursive data is old, check caching and delegation.
- If the service fails, restore the complete saved record set and keep the old service running. Repeat DNS queries and service checks. New values may already be cached, so restoration at the authoritative server does not immediately restore every client.
TTL is a normal cache lifetime in seconds, not a periodic refresh instruction. RFC 8767 permits resolvers to serve expired data under certain failure conditions. Negative caching has separate rules, and resolver policy, delegation and application caches also affect convergence; no universal propagation or rollback time can be promised.
Verify records with dig
These read-only commands require dig on macOS or Linux. First confirm the actual zone and authoritative server with the registrar and parent delegation. Replace the example zone, queried name, authoritative server and recursive resolver with your own values; the example names are placeholders.
ZONE=example.com
HOST=www.example.com
AUTH=ns1.example.net
RESOLVER=1.1.1.1
dig "$ZONE" NS
dig @"$AUTH" "$HOST" A +norecurse
dig @"$RESOLVER" "$HOST" A
dig @"$RESOLVER" "$ZONE" MX
dig @"$RESOLVER" "$ZONE" TXT
The first query shows NS data for the zone; cross-check it against the registrar and parent delegation rather than treating it alone as proof of delegation. The authoritative A query should show the aa flag and the expected record. Recursive A, MX and TXT answers should match the intended configuration, although caches may temporarily differ. Substitute AAAA, CNAME or CAA for A as needed, and query each authoritative server; if a record is absent, inspect the status and SOA rather than treating an empty answer as success.
For NXDOMAIN, check the full name and delegation first. For SERVFAIL, check authoritative reachability, DNSSEC and resolver response details. Once the authoritative configuration is correct, compare recursive resolvers and application caches before deciding to wait or roll back.
Limitations
- Correct DNS answers do not prove the website, TLS certificate or mail delivery works. Also test the target service, firewall and protocol configuration.
- NS and DNSSEC changes involve parent delegation and the signing chain and cannot be rolled back as a single record edit. Prepare the complete zone and a key or DS handling plan before migration.
FAQ
How can an apex use a service that only supplies a CNAME target?
Consider an apex alias or flattening. Ask the DNS or target provider whether it supports either feature or usable A/AAAA values. Do not publish a standard CNAME directly at the zone apex. Check how the feature returns addresses and its limitations, then verify the apex and certificate.
Why do users still see the old address after a console change?
A recursive resolver or application may still have the old answer, or the edited zone may not be delegated. Query each authoritative server and check parent NS first. If authoritative data is correct, compare recursive answers and consider the old TTL, negative caching or stale data during failures.
Will a domain verification TXT overwrite my SPF record?
Different TXT values can normally coexist at the same name, but check the console's actual save behavior. After adding verification, query the full TXT set and retain existing SPF and other verification values. When changing SPF, combine authorized senders in the single policy.
Related Providers
- Cloudflare: can host a DNS zone; check NS delegation and how proxy mode affects returned answers before use.
- Namecheap: can manage registration and its DNS service; first confirm the name servers actually in use.
- Vultr: when pointing records at a cloud instance, check its addresses and identify the DNS host.
Community & Resources
- Domain Industry: registration, delegation and domain management.
- Domain basics: the roles of registries, registrars and DNS hosts.
- DNS resolution troubleshooting: tracing why a record does not appear as expected.
Original source: 16IDC Original ↗