aboutsummaryrefslogtreecommitdiff
path: root/request
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2017-07-11 18:05:32 -0400
committerGravatar John Belamaric <jbelamaric@infoblox.com> 2017-07-11 18:05:32 -0400
commit8495e48297856d902a6f2791e1629f8a7ac8a1c7 (patch)
treed67348c2d1a7c49849461a96aafebe9bd8c88a33 /request
parent0049230a935b8e45ffcb290723a3a17df4b59f77 (diff)
downloadcoredns-8495e48297856d902a6f2791e1629f8a7ac8a1c7.tar.gz
coredns-8495e48297856d902a6f2791e1629f8a7ac8a1c7.tar.zst
coredns-8495e48297856d902a6f2791e1629f8a7ac8a1c7.zip
k8s/autopath: Add CNAMES (#771)
* Add unit tests & cnames * more progress * fix * next mw dependent unit tests * add tests for OnNXDOMAIN * Add AAAA and ndots unit tests; fix request.NewWithQuestion * Correct default value in README * add CNAMEs to readme * review * fix autopath examples * fix and test CNAME response order
Diffstat (limited to 'request')
-rw-r--r--request/request.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/request/request.go b/request/request.go
index 9353373ef..d371d9c21 100644
--- a/request/request.go
+++ b/request/request.go
@@ -29,7 +29,7 @@ type Request struct {
// section in the request.
func (r *Request) NewWithQuestion(name string, typ uint16) Request {
req1 := Request{W: r.W, Req: r.Req.Copy()}
- req1.Req.Question[0] = dns.Question{Name: dns.Fqdn(name), Qtype: dns.ClassINET, Qclass: typ}
+ req1.Req.Question[0] = dns.Question{Name: dns.Fqdn(name), Qclass: dns.ClassINET, Qtype: typ}
return req1
}