Commit 59e74eb1 authored by Chris O'Haver's avatar Chris O'Haver Committed by John Belamaric

correct test and code (#3184)

parent 338d148c
...@@ -20,7 +20,7 @@ func (e *External) serveApex(state request.Request) (int, error) { ...@@ -20,7 +20,7 @@ func (e *External) serveApex(state request.Request) (int, error) {
addr := e.externalAddrFunc(state) addr := e.externalAddrFunc(state)
for _, rr := range addr { for _, rr := range addr {
rr.Header().Ttl = e.ttl rr.Header().Ttl = e.ttl
rr.Header().Name = state.QName() rr.Header().Name = dnsutil.Join("ns1", e.apex, state.QName())
m.Extra = append(m.Extra, rr) m.Extra = append(m.Extra, rr)
} }
default: default:
......
...@@ -59,7 +59,7 @@ var testsApex = []test.Case{ ...@@ -59,7 +59,7 @@ var testsApex = []test.Case{
test.NS("example.com. 5 IN NS ns1.dns.example.com."), test.NS("example.com. 5 IN NS ns1.dns.example.com."),
}, },
Extra: []dns.RR{ Extra: []dns.RR{
test.A("example.com. 5 IN A 127.0.0.1"), test.A("ns1.dns.example.com. 5 IN A 127.0.0.1"),
}, },
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment