correct test and code (#3184)
This commit is contained in:
parent
338d148c78
commit
59e74eb15d
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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"),
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue