documentation

This commit is contained in:
Miek Gieben 2012-12-02 09:15:10 +01:00
parent 6507aee74e
commit d618b07666
3 changed files with 5 additions and 3 deletions

View File

@ -8,6 +8,8 @@
* verify * verify
* Use BIND10 memory efficient zone structure? * Use BIND10 memory efficient zone structure?
* copy srv/mx sorting from base library * copy srv/mx sorting from base library
* allow multiple edns0 options to exist in the record when converting
from/to wireformat
## Nice to have ## Nice to have

View File

@ -80,7 +80,7 @@ func (dns *Msg) SetUpdate(z string) *Msg {
return dns return dns
} }
// SetIxfr creates dns msg suitable for requesting an ixfr. // SetIxfr creates dns.Msg for requesting an IXFR.
func (dns *Msg) SetIxfr(z string, serial uint32) *Msg { func (dns *Msg) SetIxfr(z string, serial uint32) *Msg {
dns.Id = Id() dns.Id = Id()
dns.Question = make([]Question, 1) dns.Question = make([]Question, 1)
@ -93,7 +93,7 @@ func (dns *Msg) SetIxfr(z string, serial uint32) *Msg {
return dns return dns
} }
// SetAxfr creates dns msg suitable for requesting an axfr. // SetAxfr creates dns.Msg for requesting an AXFR.
func (dns *Msg) SetAxfr(z string) *Msg { func (dns *Msg) SetAxfr(z string) *Msg {
dns.Id = Id() dns.Id = Id()
dns.Question = make([]Question, 1) dns.Question = make([]Question, 1)

View File

@ -25,7 +25,7 @@
// m := new(dns.Msg) // m := new(dns.Msg)
// m.SetAxfr("miek.nl.") // m.SetAxfr("miek.nl.")
// m.SetTsig("axfr.", dns.HmacMD5, 300, time.Now().Unix()) // m.SetTsig("axfr.", dns.HmacMD5, 300, time.Now().Unix())
// t, err := c.XfrReceive(m, "85.223.71.124:53") // t, err := c.TransferIn(m, "85.223.71.124:53")
// for r := range t { /* ... */ } // for r := range t { /* ... */ }
// //
// You can now read the records from the AXFR as they come in. Each envelope is checked with TSIG. // You can now read the records from the AXFR as they come in. Each envelope is checked with TSIG.