correct test and code (#3184)

This commit is contained in:
Chris O'Haver 2019-08-23 14:51:42 -04:00 committed by John Belamaric
parent 338d148c78
commit 59e74eb15d
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ func (e *External) serveApex(state request.Request) (int, error) {
addr := e.externalAddrFunc(state)
for _, rr := range addr {
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)
}
default:

View file

@ -59,7 +59,7 @@ var testsApex = []test.Case{
test.NS("example.com. 5 IN NS ns1.dns.example.com."),
},
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"),
},
},
{