All DNS Fails on a New OpenStack VM but TCP Works — the Security Group With No UDP Egress
A new OpenStack VM for a mail platform could not resolve any name. The server firewall accepted everything, resolv.conf was correct, and the same query over TCP answered at once. The cause was the cloud security group: it had no egress rule for UDP, and DNS goes out over UDP first. Here is the two-query test that proves it, the rule that fixes it, and the other security-group mistakes I now check on every new build.