From dee2456fdfd1fa50735405cf701bca12d1c37683 Mon Sep 17 00:00:00 2001 From: Pat Moroney Date: Thu, 20 Jul 2017 14:08:28 -0600 Subject: [PATCH] AAAA records were not listed in ToRR() (#159) --- models/dns.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/dns.go b/models/dns.go index 42864b700..713b6285e 100644 --- a/models/dns.go +++ b/models/dns.go @@ -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: