mirror of
https://github.com/miekg/dns.git
synced 2025-12-17 01:31:00 +01:00
documentation
This commit is contained in:
parent
6507aee74e
commit
d618b07666
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
2
tsig.go
2
tsig.go
@ -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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user