CreateHostedZone#

Description#

Request to create a DNS zone.

Request Parameters#

Required parameters#

  • CallerReference — Unique string that identifies the request.

    • Type: String

    • Required: Yes

    • Length constraints: 1 to 128 characters

  • Name — The DNS zone name.

    • Type: String

    • Required: Yes

    • Constraints: The name must meet the following requirements:

      • Length must be 3 to 255 characters

      • Only ASCII letters (a-z, A-Z), numbers, periods, dashes and underscores are allowed

      • Cannot be a zero- or first-level domain

Optional parameters#

  • HostedZoneConfig — The DNS zone configuration.

  • VPC — Information about Virtual Private Cloud.

    • Type: VPC object

    • Required: No

Response Elements#

  • ChangeInfo — Information about changes in the DNS zone.

  • DelegationSet — List of DNS servers.

  • HostedZone — DNS zone.

Examples#

c2-route53 CreateHostedZone CallerReference "timestamp" Name "example.com"

c2-route53 CreateHostedZone CallerReference "timestamp" Name "example.com" VPC.VPCId vpc-xxxxxxxx

c2-route53 CreateHostedZone CallerReference "timestamp" Name "example.com" VPC.VPCId vpc-xxxxxxxx HostedZoneConfig.PrivateZone true HostedZoneConfig.Comment "my first hosted zone."