So I passed parsing compressed DNS without actually implementing it. I tried many ways to send compressed DNS packets to my server. But nothing seems to work. My best try was this script.
I had the same thoughts. Is it really possible to send a compressed query? (Perhaps in advanced cases, but I’m not sure.)
In a single question, there is only one domain name, so there’s nothing to compress. I believe compression applies only to DNS responses. When sending a response, both the Question and Answer sections are present, and the domain name is repeated across them, creating an opportunity for compression. However, since this stage doesn’t require sending a compressed response, it’s possible to pass it without actually implementing compression.