1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

AAAA records were not listed in ToRR() (#159)

This commit is contained in:
Pat Moroney
2017-07-20 14:08:28 -06:00
committed by Tom Limoncelli
parent e6ce3b8895
commit dee2456fdf

View File

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