documentation
This commit is contained in:
parent
6507aee74e
commit
d618b07666
|
@ -8,6 +8,8 @@
|
|||
* verify
|
||||
* Use BIND10 memory efficient zone structure?
|
||||
* copy srv/mx sorting from base library
|
||||
* allow multiple edns0 options to exist in the record when converting
|
||||
from/to wireformat
|
||||
|
||||
## Nice to have
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ func (dns *Msg) SetUpdate(z string) *Msg {
|
|||
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 {
|
||||
dns.Id = Id()
|
||||
dns.Question = make([]Question, 1)
|
||||
|
@ -93,7 +93,7 @@ func (dns *Msg) SetIxfr(z string, serial uint32) *Msg {
|
|||
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 {
|
||||
dns.Id = Id()
|
||||
dns.Question = make([]Question, 1)
|
||||
|
|
2
tsig.go
2
tsig.go
|
@ -25,7 +25,7 @@
|
|||
// m := new(dns.Msg)
|
||||
// m.SetAxfr("miek.nl.")
|
||||
// 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 { /* ... */ }
|
||||
//
|
||||
// You can now read the records from the AXFR as they come in. Each envelope is checked with TSIG.
|
||||
|
|
Loading…
Reference in New Issue