mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Attempt to add NAPTR support.
This commit is contained in:
@@ -62,6 +62,7 @@ func validateRecordTypes(rec *models.RecordConfig, domain string, pTypes []strin
|
||||
"TXT": true,
|
||||
"NS": true,
|
||||
"PTR": true,
|
||||
"NAPTR": true,
|
||||
"ALIAS": false,
|
||||
}
|
||||
_, ok := validTypes[rec.Type]
|
||||
@@ -170,6 +171,8 @@ func checkTargets(rec *models.RecordConfig, domain string) (errs []error) {
|
||||
}
|
||||
case "PTR":
|
||||
check(checkTarget(target))
|
||||
case "NAPTR":
|
||||
check(checkTarget(target))
|
||||
case "ALIAS":
|
||||
check(checkTarget(target))
|
||||
case "SRV":
|
||||
|
Reference in New Issue
Block a user