Review Cloud DNS DNSSEC settings

Configure DNSSEC and the parent trust chain so public DNS responses can be validated.

Description

Signing a public Cloud DNS zone and publishing its DS in the parent lets a validating resolver authenticate the origin and integrity of DNS answers. The answers remain unencrypted.

Potential impact

A parent DS record that does not match the signing key can prevent validating resolvers from resolving legitimate names.

Remediation

Sign the zone with a supported algorithm, then register the DS for the key-signing key with the registrar or parent zone. Check that a validating resolver authenticates an answer. Follow the Cloud DNS transition procedure for key changes. Before turning signing off, remove the parent DS and wait for cached copies to expire.

Examples

Supply the actual zone name, domain, project and service account JSON file path. Configure the parent delegation and DS separately.

Before

yaml
- name: DNS 관리 영역 생성
  google.cloud.gcp_dns_managed_zone:
    name: test-zone
    dns_name: test.somewild2.example.com.
    description: test zone
    project: test_project
    auth_kind: serviceaccount
    service_account_file: /tmp/auth.pem
    state: present

The first task omits DNSSEC settings. For an existing zone, check its current signing state and parent DS.

After

yaml
- name: DNS 관리 영역 생성
  google.cloud.gcp_dns_managed_zone:
    name: test-zone
    dns_name: test.somewild2.example.com.
    description: test zone
    project: test_project
    auth_kind: serviceaccount
    service_account_file: /tmp/auth.pem
    state: present
    dnssec_config:
      kind: dns#managedZoneDnsSecConfig
      state: "on"

The second task enables public-zone signing with dnssec_config.state: "on".

References