libdns / gandi

Gandi provider implementation for libdns
MIT License
9 stars 9 forks source link

Relative/absolute record name conversions #5

Closed mholt closed 2 years ago

mholt commented 3 years ago

Hi,

Over in the libdns repo, we're discussing standardizing the use of relative or absolute record names in libdns.Record structs. The current consensus is that they should be made relative (i.e. for a record named sub.example.com in a zone called example.com, the name should become sub). This may affect your provider implementation.

When you have a chance, would you please check out this issue? This is the last call for feedback before we decide and I push the changes.

Link: https://github.com/libdns/libdns/issues/12#issuecomment-756135908

Thank you!

obynio commented 3 years ago

Hello there, sorry for the late reply. I've been a bit busy. I'll try to take a look at this asap :)

mholt commented 2 years ago

(Sorry, forgot about this issue!)

After much discussion we settled on using relative names with conversion functions to help: https://pkg.go.dev/github.com/libdns/libdns#AbsoluteName

Thanks for maintaining your libdns repo!