1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

HOSTINGDE: BUG: PTR records aren't working (#1946)

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
Julius Rickert
2023-01-17 16:57:20 +01:00
committed by GitHub
parent 261961c5b8
commit 8344f5c7c9

View File

@@ -129,6 +129,9 @@ func (r *record) nativeToRecord(domain string) *models.RecordConfig {
err = rc.PopulateFromString("MX", "0 .", domain)
case "MX":
err = rc.SetTargetMX(uint16(r.Priority), r.Content)
case "PTR":
rc.Type = r.Type
err = rc.SetTarget(r.Content + ".")
case "SRV":
err = rc.SetTargetSRVPriorityString(uint16(r.Priority), r.Content)
default: