Multi-query multiple DNS record types at once

dns-lookupdomain-name-system

I am currently experimenting a bit with the DNS protocol. I have noticed that I can query both, A- and MX-record of a domain, using two separate DNS packets, each containing one question query. However, when I chain them together within the question section so that the question section of a single DNS packet contains two queries, the reply to my request will only return the A-record of the domain.

E.g. The query "A test.com" returns the IP address of test.com and "MX test.com" returns the mail exchange server. But the query "A test.com, MX test.com" only returns the IP address.

Why is that the case?

Best Answer

The short answer is it's allowed in the protocol, but practically not supported. For more details you can see the below similar question/answer. https://stackoverflow.com/a/4083071/3042552