CreateHostedZone
In this article:
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.
Type: HostedZoneConfig object
Required: No
VPC — Information about Virtual Private Cloud.
Type: VPC object
Required: No
Response Elements#
ChangeInfo — Information about changes in the DNS zone.
Type: ChangeInfo object
DelegationSet — List of DNS servers.
Type: DelegationSet object
HostedZone — DNS zone.
Type: HostedZone object
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."