By Jason Peters
I am working to build my personal and professional infrastructure from the group up using Terraform on DigitalOcean.
The issue I am having is setting up my primary domain name. When created it automatically enters three NS records pointing to ns{1,2,3}.digitalocean.com which of course makes sense.
However I am trying to achieve vanity nameservers as outlined in this article: https://www.digitalocean.com/community/tutorials/how-to-create-vanity-or-branded-nameservers-with-digitalocean-cloud-servers
Here is the script attempting to modify ns1
resource "digitalocean_record" "ns" {
domain = "${digitalocean_domain.domain.name}"
type = "NS"
name = ""
value = "ns1.${digitalocean_domain.domain.name}."
ttl = "1800"
}
This fails due to the name being empty. Adding a value produces an undesired result.
I would like to either not have these entries entered if possible or edit/modify them.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey friend,
Great question! Our API does require the name field. We accept an “@” symbol as simply referring to the root domain.
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.