Skip to content

Commit

Permalink
Fix name of extra type A RR against apex NS lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
ntoofu@users.noreply.github.com committed Aug 3, 2022
1 parent a68d71e commit 7fbb170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (gw *Gateway) SelfAddress(state request.Request) (records []dns.RR) {
}
}

records = append(records, gw.A(state.Name(), addrs1)...)
records = append(records, gw.A(gw.apex+"."+state.Zone, addrs1)...)

if state.QType() == dns.TypeNS {
records = append(records, gw.A(gw.secondNS+"."+state.Zone, addrs2)...)
Expand Down

0 comments on commit 7fbb170

Please sign in to comment.