Add authors bind stuff
This commit is contained in:
parent
ac51a3e97d
commit
c8a588fabb
|
@ -4,7 +4,6 @@
|
|||
* put axfr in q
|
||||
* make example from chaos
|
||||
|
||||
|
||||
## Nice to have
|
||||
|
||||
* Speed, we can always go faster. A simple reflect server now hits 35/45K qps
|
||||
|
|
|
@ -51,3 +51,17 @@ func ExampleToDs(zone string) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Show how to setup the authors for 'authors.bind. CH TXT' or 'authors.server. CH TXT'
|
||||
// queries.
|
||||
func ExampleAuthors() {
|
||||
// ... server setup is out of scope ...
|
||||
HandleFunc("authors.bind.", HandleAuthors)
|
||||
HandleFunc("authors.server.", HandleAuthors)
|
||||
|
||||
// To extend the authors list, just append to dns.Authors (a []string)
|
||||
Authors = append(Authors, "G. I. Joe")
|
||||
|
||||
// Or
|
||||
Authors = []string{"Just Me"}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue