update_domain_nameservers
(**kwargs)¶This operation replaces the current set of name servers for the domain with the specified set of name servers. If you use Amazon Route 53 as your DNS service, specify the four name servers in the delegation set for the hosted zone for the domain.
If successful, this operation returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.
See also: AWS API Documentation
Request Syntax
response = client.update_domain_nameservers(
DomainName='string',
FIAuthKey='string',
Nameservers=[
{
'Name': 'string',
'GlueIps': [
'string',
]
},
]
)
[REQUIRED]
The name of the domain that you want to change name servers for.
[REQUIRED]
A list of new name servers for the domain.
Name server includes the following elements.
The fully qualified host name of the name server.
Constraint: Maximum 255 characters
Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name server is a subdomain of the domain. For example, if your domain is example.com and the name server for the domain is ns.example.com, you need to specify the IP address for ns.example.com.
Constraints: The list can contain only one IPv4 and one IPv6 address.
dict
Response Syntax
{
'OperationId': 'string'
}
Response Structure
(dict) --
The UpdateDomainNameservers response includes the following element.
OperationId (string) --
Identifier for tracking the progress of the request. To query the operation status, use GetOperationDetail.
Exceptions
Route53Domains.Client.exceptions.InvalidInput
Route53Domains.Client.exceptions.DuplicateRequest
Route53Domains.Client.exceptions.TLDRulesViolation
Route53Domains.Client.exceptions.OperationLimitExceeded
Route53Domains.Client.exceptions.UnsupportedTLD