mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-12-26 09:42:18 +08:00
AAAA records were not listed in ToRR() (#159)
This commit is contained in:
parent
e6ce3b8895
commit
dee2456fdf
1 changed files with 2 additions and 0 deletions
|
@ -150,6 +150,8 @@ func (rc *RecordConfig) ToRR() dns.RR {
|
|||
switch rdtype {
|
||||
case dns.TypeA:
|
||||
rr.(*dns.A).A = net.ParseIP(rc.Target)
|
||||
case dns.TypeAAAA:
|
||||
rr.(*dns.AAAA).AAAA = net.ParseIP(rc.Target)
|
||||
case dns.TypeCNAME:
|
||||
rr.(*dns.CNAME).Target = rc.Target
|
||||
case dns.TypePTR:
|
||||
|
|
Loading…
Reference in a new issue