From 480175691c87430e02a018dca7b176827e3b60f0 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 22 Nov 2018 22:49:45 +0100 Subject: [PATCH] comment --- features/dns/localdns/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/features/dns/localdns/client.go b/features/dns/localdns/client.go index 5a2a51b3f..ed486bf7b 100644 --- a/features/dns/localdns/client.go +++ b/features/dns/localdns/client.go @@ -36,6 +36,7 @@ func (c *Client) LookupIP(host string) ([]net.IP, error) { return ips, nil } +// LookupIPv4 implements IPv4Lookup. func (c *Client) LookupIPv4(host string) ([]net.IP, error) { ips, err := c.LookupIP(host) if err != nil { @@ -51,6 +52,7 @@ func (c *Client) LookupIPv4(host string) ([]net.IP, error) { return ipv4, nil } +// LookupIPv6 implements IPv6Lookup. func (c *Client) LookupIPv6(host string) ([]net.IP, error) { ips, err := c.LookupIP(host) if err != nil { @@ -66,6 +68,7 @@ func (c *Client) LookupIPv6(host string) ([]net.IP, error) { return ipv6, nil } +// New create a new dns.Client that queries localhost for DNS. func New() *Client { return &Client{ resolver: net.Resolver{