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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user