dnscontrol/providers
Patrick Gaskin 70ce16ff23 Fix handling of SRV records with no target (indicated by ".")
According to the RFC, the way to indicate that a SRV has no target is to set the target to ".".  Some providers do not handle this, or the API returns "" instead of ".".  This situation is now tested in the integration tests and all providers (that support this) have been fixed.



* Cloudflare: Fix decoding empty SRV target (fixes #561)

SRV records with empty (".") targets are now returned as false by
the API, which breaks Unmarshaling it into a string.

* Use custom type for Cloudflare SRV target

Rewrote the SRV target decoding to use a custom type for (un)marshaling, as
Cloudflare returns false for null targets, but it requires a single period
for giving it one. The target code has also been made more flexible to future
API changes with additional normalization.

This has been tested with record creation, deletion, and update and works
as of 2019-11-05.

* DigitalOcean: Fix target FQDN for null targets

Without this, dnscontrol thinks an update is needed (.. != .) even
when the SRV target is correct.

* DNSimple: Fix parsing of null SRV target

DNSimple only returns two fields when the target is null.

* NameDotCom: Add note about not supporting null SRV targets, skip test

* DNSimple: Do not append a . unless we have all three parts

Signed-off-by: Amelia Aronsohn <squirrel@wearing.black>

* Regenerated provider matrix
2019-11-14 11:25:20 -05:00
..
_all Add Azure DNS (#547) 2019-09-18 21:45:13 -04:00
activedir fix format again 2019-06-27 01:29:13 -04:00
azuredns DOCUMENTATION: Azure DNS dual host support is limited (#560) 2019-10-31 09:44:42 -04:00
bind Fix NAPTR record support. 2019-03-29 12:01:52 +01:00
cloudflare Fix handling of SRV records with no target (indicated by ".") 2019-11-14 11:25:20 -05:00
config Warn (but don't fail) if creds.json file does not exist (#425) 2018-12-11 11:56:06 -05:00
diff make test more chaotic (still passes) 2019-10-09 09:54:40 -04:00
digitalocean Fix handling of SRV records with no target (indicated by ".") 2019-11-14 11:25:20 -05:00
dnsimple Fix handling of SRV records with no target (indicated by ".") 2019-11-14 11:25:20 -05:00
exoscale NEW PROVIDER: Exoscale (#390) 2019-02-22 09:10:23 -05:00
gandi GANDI-LIVEDNS: Support for multi TXT records verified (#545) 2019-08-26 14:07:02 -04:00
gcloud Integration tests running in azure pipelines (#516) 2019-07-02 12:32:54 -04:00
hexonet new provider module HEXONET (#373) 2018-08-30 08:54:42 -04:00
linode Refactor in preparation to unexport RecordConfig.{Name,NameFQDN,Target} (#337) 2018-03-19 17:18:58 -04:00
namecheap Verbose debug logging via the ConsolePrinter and printer package. (#404) 2018-10-08 16:10:44 -04:00
namedotcom Fix handling of SRV records with no target (indicated by ".") 2019-11-14 11:25:20 -05:00
ns1 make sure key/value grouping always uses fqdn 2018-09-07 13:46:44 -04:00
octodns Add NAMESERVER_TTL and associated documentation. (#398) 2018-09-04 10:57:11 -04:00
opensrs NEW REGISTRAR: OpenSRS (#275) 2018-03-04 23:07:22 -05:00
ovh fix format 2019-06-27 01:21:23 -04:00
route53 fix format 2019-06-27 01:21:23 -04:00
softlayer Refactor in preparation to unexport RecordConfig.{Name,NameFQDN,Target} (#337) 2018-03-19 17:18:58 -04:00
vultr vultr: Added support for SSHFP records (#531) 2019-07-15 12:28:37 -04:00
capabilities.go Attempt to add NAPTR support. 2019-03-28 15:40:13 +01:00
providers.go Documentation: Clarify the when to implement certain interfaces (#376) 2018-07-25 12:59:04 -04:00