documentation

This commit is contained in:
Miek Gieben 2012-01-16 21:20:21 +01:00
parent 96d79c6816
commit d7400fd503
1 changed files with 3 additions and 3 deletions

6
dns.go
View File

@ -41,10 +41,10 @@
// m1.Question[0] = Question{"miek.nl.", TypeMX, ClassINET} // m1.Question[0] = Question{"miek.nl.", TypeMX, ClassINET}
// //
// After creating a message it can be send. // After creating a message it can be send.
// Basic use pattern for synchronous querying the DNS. We are // Basic use pattern for synchronous querying the DNS:
// sending the message 'm' to the server 127.0.0.1 on port 53 and
// waiting for the reply.
// //
// // We are sending the message 'm' to the server 127.0.0.1
// // on port 53 and wait for the reply.
// c := NewClient() // c := NewClient()
// // c.Net = "tcp" // If you want to use TCP // // c.Net = "tcp" // If you want to use TCP
// in := c.Exchange(m, "127.0.0.1:53") // in := c.Exchange(m, "127.0.0.1:53")