persist truncated state to client if lookup response is truncated (#4712)

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver
2022-01-07 11:19:46 -05:00
committed by GitHub
parent b546031f9b
commit 37c0fcf439
2 changed files with 58 additions and 0 deletions

View File

@@ -131,6 +131,9 @@ func (d *DNS64) Synthesize(origReq, origResponse, resp *dns.Msg) *dns.Msg {
ret := dns.Msg{}
ret.SetReply(origReq)
// persist truncated state of AAAA response
ret.Truncated = resp.Truncated
// 5.3.2: DNS64 MUST pass the additional section unchanged
ret.Extra = resp.Extra
ret.Ns = resp.Ns