mirror of
https://github.com/coredns/coredns.git
synced 2025-10-31 18:23:13 -04:00
more stuff; insight: use proxy for upstream queries
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user