DNS for websites

Inventory website, mail and verification records before changing delegation. Check the authoritative answers and the public site after moving the zone.

Records to check at cutover
Website
www.example.com. · A
Inbound mail
example.com. · MX
Sender policy
example.com. · TXT

Migrate a website zone with its supporting records

Move the zone to Cloud DNS. Flatten the apex to Cloud CDN, sign if you need DNSSEC, and keep TTLs low on records you cut over.

Anycast lookups worldwide

Recursive resolvers reach the authoritative service through an Anycast route.

Apex and www on the CDN

CNAME flattening lets the root follow the Cloud CDN hostname.

DDoS-protected authority

A DNS flood should not take the website name off the internet.

Configuration

Cloud DNS overview
  1. Import the zone

    Bring existing A, AAAA, MX, TXT and CNAME records into Cloud DNS.

  2. Point the apex at Cloud CDN

    Use flattening so example.com and www share the distribution.

  3. Delegate nameservers

    Change NS at the registrar only after records look correct.

  4. Lower TTLs before the next migration

    Website cutovers should not wait on a 24-hour TTL.

Operational outcomes

  • The website zone is on Anycast DNS
  • Apex can follow Cloud CDN
  • Mail and verification records remain intact
  • Record lifetimes can be adjusted before a future cutover

Frequently asked questions

Will moving DNS change my website IP?

Only if you change records. Delegation can happen before you point the apex at Cloud CDN.

Can I keep MX at the apex?

Yes. Flattening is designed so mail and alias targets can coexist.

Should www be a CNAME?

Usually yes, to the Cloud CDN hostname. The apex uses flattening to do the same job.

Is DNSSEC required for a brochure site?

Not required. It is available when you want signed answers for the zone.