doc tweak
This commit is contained in:
parent
df6d86e937
commit
536ac17f11
8
dns.go
8
dns.go
|
@ -51,13 +51,11 @@
|
|||
// m1.Question[0] = Question{"miek.nl.", TypeMX, ClassINET}
|
||||
//
|
||||
// After creating a message it can be send.
|
||||
// Basic use pattern for synchronous querying the DNS:
|
||||
// Basic use pattern for synchronous querying the DNS at a
|
||||
// server configured on 127.0.0.1 and port 53:
|
||||
//
|
||||
// // We are sending the message 'm' to the server 127.0.0.1
|
||||
// // on port 53 and wait for the reply.
|
||||
// c := NewClient()
|
||||
// // c.Net = "tcp" // If you want to use TCP
|
||||
// in := c.Exchange(m, "127.0.0.1:53")
|
||||
// in := c.Exchange(m1, "127.0.0.1:53")
|
||||
//
|
||||
// An asynchronous query is also possible, setting up is more elaborate then
|
||||
// a synchronous query. The Basic use pattern is:
|
||||
|
|
Loading…
Reference in New Issue