more stuff; insight: use proxy for upstream queries

This commit is contained in:
Miek Gieben
2016-03-21 21:21:29 +00:00
parent ecc5f28671
commit 740178c83f
6 changed files with 156 additions and 97 deletions

View File

@@ -2,13 +2,7 @@ package middleware
import "github.com/miekg/dns"
// Exchang sends message m to the server.
// TODO(miek): optionally it can do retries of other silly stuff.
func Exchange(c *dns.Client, m *dns.Msg, server string) (*dns.Msg, error) {
r, _, err := c.Exchange(m, server)
return r, err
}
// Lookup functions, ala
// LookupHost
// LookupCNAME