This commit is contained in:
Miek Gieben 2013-12-30 16:46:53 +00:00
parent 902ff847c8
commit 451c12da09
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ type Client struct {
// Exchange performs a synchronous UDP query. It sends the message m to the address
// contained in a and waits for an reply. Exchange does not retry a failed query, nor
// will it fallback to TCP in case of truncation.
// will it fall back to TCP in case of truncation.
func Exchange(m *Msg, a string) (r *Msg, err error) {
var co *Conn
co, err = DialTimeout("udp", a, dnsTimeout)
@ -82,7 +82,7 @@ func ExchangeConn(c net.Conn, m *Msg) (r *Msg, err error) {
// c := new(dns.Client)
// in, rtt, err := c.Exchange(message, "127.0.0.1:53")
//
// Exchange does not retry a failed query, nor will it fallback to TCP in
// Exchange does not retry a failed query, nor will it fall back to TCP in
// case of truncation.
func (c *Client) Exchange(m *Msg, a string) (r *Msg, rtt time.Duration, err error) {
if !c.SingleInflight {