Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net: dnsMsg.Pack() doesn't support compression #15954
RFC 1035 specifies (among other things) two requirements for DNS packet transport and parsing:
Supporting compression is optional on the packet building side, but not supporting it often results in packets larger than 512 bytes. Long domains and domains with lots of records are common, so not supporting compression often results in DNS packet corruption when using UDP because most DNS implementations (including the one in this package) will only read the first 512 bytes.