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: