test
This commit is contained in:
parent
98cb594e82
commit
1a5d4de822
@ -79,10 +79,10 @@ func PerformZoneTransfer(config config.Config) {
|
|||||||
func resultsToJSON(data []string) {
|
func resultsToJSON(data []string) {
|
||||||
for _, i := range data {
|
for _, i := range data {
|
||||||
splitStrings := strings.Split(i, " ")
|
splitStrings := strings.Split(i, " ")
|
||||||
hostname := splitStrings[1]
|
hostname := splitStrings[0]
|
||||||
ip := splitStrings[2]
|
ip := splitStrings[1]
|
||||||
// txt := splitStrings[3]
|
txt := splitStrings[2]
|
||||||
dns := &model.Results{IP: ip, Hostname: hostname}
|
dns := &model.Results{IP: ip, Hostname: hostname, TXT: txt}
|
||||||
b, err := json.Marshal(dns)
|
b, err := json.Marshal(dns)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user