1
0
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:
Peter Dunaskin
2019-03-28 15:40:13 +01:00
parent 963bd32e20
commit 7566c0428e
15 changed files with 251 additions and 87 deletions

View File

@@ -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":