A Layer 7 DNS rule has been configured to match DNS traffic. However, a Layer 4 rule below is matched instead.
Expected rule:
rule 3315 at 9 inout protocol udp from addrset <src addrset> to addrset <dest addrset> port 53 with attribute profile <DNS Context Profile> accept with log; <---- L7 Rule
Rule that is matched instead:
rule 3329 at 25 inout protocol udp from addrset <src addrset> to addrset <dest addrset> port 53 accept with log; <----L4 Rule
VMware NSX (all versions)
An ICMP 'Destination Port Unreachable' message is observed between the client and server, suggesting a port or connectivity issue. As a result, the DNS query/response is incomplete, and the context engine does not recognize it as a valid DNS query.
Packet capture taken at DNS Server vNic:
This is expected L7 DFW behavior. Address the port or connectivity issue between the client/server.