diff --git a/app/dns/nameserver.go b/app/dns/nameserver.go index 94adff65..3ea1610a 100644 --- a/app/dns/nameserver.go +++ b/app/dns/nameserver.go @@ -157,7 +157,7 @@ func (v *UDPNameServer) BuildQueryA(domain string, id uint16) *buf.Buffer { }} writtenBuffer, _ := msg.PackBuffer(buffer.Bytes()) - buffer.Slice(0, len(writtenBuffer)) + buffer.Append(writtenBuffer) return buffer }