AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
To create a new hosted zone, send a POST
request to the
/Route 53 API version/hostedzoneresource. The request body must include a document with a
CreateHostedZoneRequest
element. The response returns the CreateHostedZoneResponse
element that contains metadata about the hosted zone.
Amazon Route 53 automatically creates a default SOA record and four NS records for the zone. The NS records in the hosted zone are the name servers you give your registrar to delegate your domain to. For more information about SOA and NS records, see NS and SOA Records that Amazon Route 53 Creates for a Hosted Zone in the Amazon Route 53 Developer Guide.
When you create a zone, its initial status is PENDING
. This means that
it is not yet available on all DNS servers. The status of the zone changes to INSYNC
when the NS and SOA records are available on all Amazon Route 53 DNS servers.
When trying to create a hosted zone using a reusable delegation set, you could specify an optional DelegationSetId, and Route53 would assign those 4 NS records for the zone, instead of alloting a new one.
Namespace: Amazon.Route53.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class CreateHostedZoneRequest : AmazonRoute53Request IRequestEvents
The CreateHostedZoneRequest type exposes the following members
Name | Description | |
---|---|---|
CreateHostedZoneRequest() | Empty constructor used to set properties independently even when a simple constructor is available | |
CreateHostedZoneRequest(string, string) | Instantiates CreateHostedZoneRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
CallerReference | System.String |
Gets and sets the property CallerReference.
A unique string that identifies the request and that allows failed Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes. |
|
DelegationSetId | System.String |
Gets and sets the property DelegationSetId.
The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone. |
|
HostedZoneConfig | Amazon.Route53.Model.HostedZoneConfig |
Gets and sets the property HostedZoneConfig.
A complex type that contains an optional comment about your hosted zone. |
|
Name | System.String |
Gets and sets the property Name.
The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.
This is the name you have registered with your DNS registrar. You should ask your
registrar to change the authoritative name servers for your domain to the set of |
|
VPC | Amazon.Route53.Model.VPC |
Gets and sets the property VPC.
The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8