Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Nov 12, 2020
1 parent 303a7b0 commit f75c480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (c *Client) QueryMultiple(host string, requestTypes []uint16) (*DNSData, er
continue
}

dnsdata.Domain = host
dnsdata.Host = host
dnsdata.Raw += resp.String()
dnsdata.StatusCode = dns.RcodeToString[resp.Rcode]
dnsdata.Resolver = append(dnsdata.Resolver, resolver)
Expand Down Expand Up @@ -170,7 +170,7 @@ func parse(answer *dns.Msg, requestType uint16) (results []string) {
}

type DNSData struct {
Domain string `json:"domain,omitempty"`
Host string `json:"host,omitempty"`
TTL int `json:"ttl,omitempty"`
Resolver []string `json:"resolver,omitempty"`
A []string `json:"a,omitempty"`
Expand Down

0 comments on commit f75c480

Please sign in to comment.