From 1a5d4de822822529f291e3d511cbe5720e09e403 Mon Sep 17 00:00:00 2001 From: Matt Burchett Date: Fri, 30 Nov 2018 12:27:18 -0600 Subject: [PATCH] test --- pkg/resolver/resolver.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/resolver/resolver.go b/pkg/resolver/resolver.go index 2ff58f7..fde45e8 100644 --- a/pkg/resolver/resolver.go +++ b/pkg/resolver/resolver.go @@ -79,10 +79,10 @@ func PerformZoneTransfer(config config.Config) { func resultsToJSON(data []string) { for _, i := range data { splitStrings := strings.Split(i, " ") - hostname := splitStrings[1] - ip := splitStrings[2] - // txt := splitStrings[3] - dns := &model.Results{IP: ip, Hostname: hostname} + hostname := splitStrings[0] + ip := splitStrings[1] + txt := splitStrings[2] + dns := &model.Results{IP: ip, Hostname: hostname, TXT: txt} b, err := json.Marshal(dns) if err != nil { fmt.Println(err)