From 37356f5e68fd31936201d1a35b92ba5c06b51482 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sun, 12 Jan 2014 10:43:59 +0000 Subject: [PATCH] Documenation fixes --- defaults.go | 2 +- dns.go | 2 +- tsig.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults.go b/defaults.go index fae86828..def6c56d 100644 --- a/defaults.go +++ b/defaults.go @@ -186,7 +186,7 @@ func Fqdn(s string) string { // Copied from the official Go code. // ReverseAddr returns the in-addr.arpa. or ip6.arpa. hostname of the IP -// address addr suitable for rDNS (PTR) record lookup or an error if it fails +// address suitable for reverse DNS (PTR) record lookups or an error if it fails // to parse the IP address. func ReverseAddr(addr string) (arpa string, err error) { ip := net.ParseIP(addr) diff --git a/dns.go b/dns.go index 60914df5..b70ba3e4 100644 --- a/dns.go +++ b/dns.go @@ -91,7 +91,7 @@ import ( const ( year68 = 1 << 31 // For RFC1982 (Serial Arithmetic) calculations in 32 bits. - DefaultMsgSize = 4096 // Standard default for larger than 512 packets. + DefaultMsgSize = 4096 // Standard default for larger than 512 bytes. MinMsgSize = 512 // Minimal size of a DNS packet. MaxMsgSize = 65536 // Largest possible DNS packet. defaultTtl = 3600 // Default TTL. diff --git a/tsig.go b/tsig.go index 22d9669e..31f20ea0 100644 --- a/tsig.go +++ b/tsig.go @@ -29,7 +29,7 @@ // t.TsigSecret = map[string]string{"axfr.": "so6ZGir4GPAqINNh9U5c3A=="} // m.SetAxfr("miek.nl.") // m.SetTsig("axfr.", dns.HmacMD5, 300, time.Now().Unix()) -// c, err := tr.In(m, "176.58.119.54:53") +// c, err := t.In(m, "176.58.119.54:53") // for r := range c { /* r.RR */ } // // You can now read the records from the transfer as they come in. Each envelope is checked with TSIG.