Free lesson

DNS records and reversible changes

DNS records and reversible changes — Domain and HTTPS for your AI site. A, AAAA and CNAME; Record the previous state; TTL and answer verification. Practical assignment: Practice: DNS records and reversible changes.

Demo edition. The materials are undergoing editorial review.

Topics covered

  • A, AAAA and CNAME
  • Record the previous state
  • TTL and answer verification

A, AAAA and CNAME

An A record contains IPv4, AAAA contains IPv6 and CNAME points to another DNS name rather than a URL. Do not enter https:// or /api into a DNS target. Prepare an A record for the lab subdomain using the actual VPS address. Add AAAA only when IPv6 is routed and protected. A stale AAAA can send some clients to the wrong server even when A is correct. Leave mail MX and TXT records untouched during this website exercise.

dig ai.example.com A +short
dig ai.example.com AAAA +short
dig example.com NS +short

Record the previous state

Before changing one subdomain, capture type, name, content, TTL and proxy status. Write the desired value and reason instead of relying on memory. DNS-only can simplify a direct initial test when revealing the origin IP is acceptable to your plan; it is not a universal requirement to disable proxying. Do not change zone-wide nameservers merely to edit one A record. Without permission for a real DNS change, produce a precise change sheet and expected answers without claiming it was applied.

TTL and answer verification

TTL sets cache lifetime rather than guaranteeing simultaneous change for every client. Lowering it does not retroactively shorten an older cached answer's lifetime. Compare authoritative answers with those from a normal resolver and record time, query type and returned address. A proxied record should return Cloudflare addresses, so comparing that result with the VPS is not an origin-content test. When answers remain old, inspect delegation, exact hostname and caching before repeatedly saving unrelated DNS edits.

Practical assignment

Practice: DNS records and reversible changes

Continue to learning

Course outline

  1. From domain to application
  2. DNS records and reversible changes
  3. Caddy in a local lab
  4. Public HTTPS and ACME
  5. Cloudflare proxy and two TLS connections
  6. Acceptance and rollback