HEDNS: Fix CNAME, NS and PTR record handling of trailing . (#1064)

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
Robert Blenkinsopp 2021-03-01 12:10:36 +00:00 committed by GitHub
parent 06a1cc3d38
commit 46e9715b67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -313,8 +313,8 @@ func (c *hednsProvider) GetZoneRecords(domain string) (models.Records, error) {
rc.SetLabelFromFQDN(rc.Original.(Record).RecordName, domain)
// dns.he.net omits the trailing "." on the hostnames for certain record types
if rc.Type == "CNAME" || rc.Type == "MX" || rc.Type == "NS" || rc.Type == "PTR" {
// dns.he.net omits the trailing "." on the hostnames for certain MX records
if rc.Type == "MX" {
rc.Target += "."
}