Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to specify NS TTL during domain creation #177

Open
danielgrant opened this issue May 20, 2019 · 0 comments
Open

Unable to specify NS TTL during domain creation #177

danielgrant opened this issue May 20, 2019 · 0 comments

Comments

@danielgrant
Copy link

When creating a new domain (https://developers.digitalocean.com/documentation/v2/#create-a-new-domain), the API automatically creates NS records for ns1.digitalocean.com, ns2.digitalocean.com and ns3.digitalocean.com. It creates these records with a low TTL of 1800, much lower than the generally recommended 86400 (which incidentally is what it creates them with if you create the domain via the Control Panel).

The call to create a domain via the API should allow the client to specify the TTL for the autogenerated NS records. Or, should allow the client to choose to disable the autogeneration of NS records so that they can be manually created using other API calls.

This is particularly frustrating when using the Terraform provider. To work around it, I'm having to use provisioner "local-exec" resources that call out to the API to fetch the ID's of the automatically generated NS records and update the TTL's to something more suitable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant