namecheap / terraform-provider-namecheap

Terraform provider for Namecheap
Apache License 2.0
147 stars 30 forks source link

How Update Nameservers When Using Custom DNS #35

Closed dovidgef closed 3 years ago

dovidgef commented 3 years ago

Hi, how could I update a domains nameservers using this provider?

Lets say I would like to switch managing DNS to a different third party DNS provider?

Thanks

DomWeldon commented 3 years ago

Just to add to this, it seems this provider is focused primarily around using Namecheap's own DNS features, whereas, I simply use Namecheap as my DNS registrar but then manage all my DNS config through Route 53. A cursory browse of thee Namecheap API seems to suggest that there are lots more methods which can be added to the provider than just those currently implemented by this provider.

The most urgent from my perspective would be setCustom, however, I'm not sure how this interfaces with setDefault, and it looks like we may need some thoughts as to how to design the provider interface given the constraints of the API.

@adamdecaf - do you have any thoughts or plans on this? I'm not super familiar with Go, but reckon I could have a decent stab at this in the next couple of weeks. Do you have any rough thoughts on a spec for this part of the provider as yet?

StyleT commented 3 years ago

I suppose that it should be addressed in #46 or soon after it

ifree92 commented 3 years ago

Please have a look here: https://registry.terraform.io/providers/namecheap/namecheap/latest/docs/guides/namecheap_domain_records_guide#nameservers

This is a way how to set custom nameservers.