mirror of
https://github.com/miekg/dns.git
synced 2025-10-12 02:11:13 +02:00
update the documentation
This commit is contained in:
parent
2ae73f6fc6
commit
c872bb18c3
4
dns.go
4
dns.go
@ -56,7 +56,7 @@
|
|||||||
// server configured on 127.0.0.1 and port 53:
|
// server configured on 127.0.0.1 and port 53:
|
||||||
//
|
//
|
||||||
// c := NewClient()
|
// c := NewClient()
|
||||||
// in := c.Exchange(m1, "127.0.0.1:53")
|
// in, rtt, addr, err := c.Exchange(m1, "127.0.0.1:53")
|
||||||
//
|
//
|
||||||
// An asynchronous query is also possible, setting up is more elaborate then
|
// An asynchronous query is also possible, setting up is more elaborate then
|
||||||
// a synchronous query. The Basic use pattern is:
|
// a synchronous query. The Basic use pattern is:
|
||||||
@ -68,6 +68,8 @@
|
|||||||
// r := <- DefaultReplyChan
|
// r := <- DefaultReplyChan
|
||||||
// // r.Reply is the answer
|
// // r.Reply is the answer
|
||||||
// // r.Request is the original request
|
// // r.Request is the original request
|
||||||
|
// // r.Rtt is the round trip time
|
||||||
|
// // r.RemoteAddr is the net.Addr were the request was sent to
|
||||||
// // r.Error is the error (if any)
|
// // r.Error is the error (if any)
|
||||||
package dns
|
package dns
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user