Before you begin
- Select a project with an active Cloud DNS service.
- Have permission to create zones and record sets.
- Have access to the domain’s registrar or parent zone if you will change delegation.
- Have
digavailable for verification. On Windows, use a shell with DNS tools installed, orResolve-DnsName -Serverfor direct queries.
example.com and the documentation-only address 192.0.2.10. Replace both with your domain and server address.
1
Create the zone
Open Cloud DNS → Zones → Create zone and enter
example.com without a URL scheme or path.Review the SOA contact and timing fields, then create the zone. Copy the zone ID and the primary and secondary nameservers shown in the console. Use the returned nameservers rather than guessing their names.For automation, use the zone creation example. A successful create returns 201 with {"id": ...}.2
Add an A record
Open the zone and create a record set with these values:
www is relative to the zone: it creates www.example.com. Use @ for the zone apex. The platform creates and manages the apex NS record set; leave it in place.Save the record set. The record sets guide includes the equivalent API request and examples for other types.3
Query both Aptranet nameservers
Replace the nameserver placeholders with the values from the console.Check for
status: NOERROR, the aa flag, and the expected address and TTL in the A answer. Both nameservers should return your record. Public resolvers can still return the old provider’s answer at this point; delegation has not changed.If a direct query fails, check the zone is active, the record is enabled, and the queried name matches the record set.4
Complete the zone
Add every required record before the cutover. For an existing domain, compare against your current provider, including MX, TXT, CAA, service records, wildcards, and subdomain delegations.Check DNSSEC at the registrar. A DS record must match the new zone’s signing state; see the migration runbook before changing it.
5
Change delegation
At the registrar or parent zone, replace the domain’s nameservers with the primary and secondary nameservers returned by Aptranet.Editing the zone’s apex NS records is not how you change parent delegation. Keep the old DNS provider active and consistent while cached delegation expires.
6
Verify public resolution