From 4bfd1ffcec4e74144bf19801e921e09c634dd3ea Mon Sep 17 00:00:00 2001 From: Collins Huff Date: Tue, 8 Feb 2022 17:02:26 -0500 Subject: [PATCH 1/2] query A and AAAA in resolve --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 11b0617..45a54dc 100644 --- a/client.go +++ b/client.go @@ -97,7 +97,7 @@ func (c *Client) ResolveWithSyscall(host string) (*DNSData, error) { // Resolve is the underlying resolve function that actually resolves a host // and gets the ip records for that host. func (c *Client) Resolve(host string) (*DNSData, error) { - return c.Query(host, dns.TypeA) + return c.QueryMultiple(host, []uint16{dns.TypeA, dns.TypeAAAA}) } // Do sends a provided dns request and return the raw native response From ec99f87d0ebfa71fdd0da5c152591f4f46a46f26 Mon Sep 17 00:00:00 2001 From: Collins Huff Date: Fri, 11 Feb 2022 13:26:21 -0500 Subject: [PATCH 2/2] gofmt --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 45a54dc..b0ee0eb 100644 --- a/client.go +++ b/client.go @@ -97,7 +97,7 @@ func (c *Client) ResolveWithSyscall(host string) (*DNSData, error) { // Resolve is the underlying resolve function that actually resolves a host // and gets the ip records for that host. func (c *Client) Resolve(host string) (*DNSData, error) { - return c.QueryMultiple(host, []uint16{dns.TypeA, dns.TypeAAAA}) + return c.QueryMultiple(host, []uint16{dns.TypeA, dns.TypeAAAA}) } // Do sends a provided dns request and return the raw native response