Implement chaos middleware

This allows for CH TXT queries that return some information about
the server and/or the authors (or whatever you put in there).
This commit is contained in:
Miek Gieben
2016-03-24 17:58:31 +00:00
parent 9712bade34
commit 5d70567f1c
7 changed files with 188 additions and 6 deletions

View File

@@ -66,8 +66,8 @@ func (r *ResponseRecorder) Start() time.Time {
return r.start
}
// Reply returns the written message from the ResponseRecorder.
func (r *ResponseRecorder) Reply() *dns.Msg {
// Msg returns the written message from the ResponseRecorder.
func (r *ResponseRecorder) Msg() *dns.Msg {
return r.msg
}