Add authors bind stuff

This commit is contained in:
Miek Gieben 2012-09-03 13:16:16 +02:00
parent ac51a3e97d
commit c8a588fabb
2 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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"}
}