mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-26 00:23:00 +08:00
HEDNS: Fix CNAME, NS and PTR record handling of trailing . (#1064)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
parent
06a1cc3d38
commit
46e9715b67
1 changed files with 2 additions and 2 deletions
|
@ -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 += "."
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue