mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-08 14:15:30 +08:00
allow alias-records to be parsed (#1096)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
parent
517b0458d6
commit
5cd9dc7b42
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ func (r *RecordConfig) PopulateFromString(rtype, contents, origin string) error
|
|||
return fmt.Errorf("invalid IP in AAAA record: %s", contents)
|
||||
}
|
||||
return r.SetTargetIP(ip) // Reformat to canonical form.
|
||||
case "ANAME", "CNAME", "NS", "PTR":
|
||||
case "ALIAS", "ANAME", "CNAME", "NS", "PTR":
|
||||
return r.SetTarget(contents)
|
||||
case "CAA":
|
||||
return r.SetTargetCAAString(contents)
|
||||
|
|
Loading…
Add table
Reference in a new issue