Replies: 1 comment
-
|
Excellent question! Sadly custom records are kind of a mess right now. There are two ways to do it, neither is "best". Both are kind of hacky. The provider.RegisterCustomRecordType method is probably the least work (see BunnyDNS for how they implemented it). However the https://docs.dnscontrol.org/developer-info/adding-new-rtypes is more standard and enables more testing. In the future (hopefully this summer) I will be creating a new way to do this which will be more standard and better documented. (Right now my plan looks like this: https://xkcd.com/927/) Bottom line: Use https://docs.dnscontrol.org/developer-info/adding-new-rtypes but I don't think it will hurt to also call provider.RegisterCustomRecordType This is definitely an area that needs improvement. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add a provider-specific record type.
After doing a little research, I found the following two methods.
provider.RegisterCustomRecordType.Which method is better?
The first method seems to have no documentation, so I'm a little confused.
Also, how can I support multiple fields?
Beta Was this translation helpful? Give feedback.
All reactions