DNS timeouts - filtering?

Alang 0 Reputation points
2025-11-04T20:12:45.9+00:00

I'm debugging an issue where customers hosting their email in O365 are unable to send to our domain. When we dig into it they are unable to resolve the MX records for our domain.

I've created a VM in Azure I can re-create the issue. Cannot resolve any records for our domain using either azure resolvers or directly using dig +trace - connections to our authoritative servers timeout. However I can resolve if I go via a public service (e.g. google, quad9).

We have a webserver running in the same network segment as one of our NS and I can successfully connect to that from the test VM. So it's not a routing issue.

So I'm left with the conclusion that MS are inspecting/filtering outbound DNS requests. Anyone know if this is case and it can be modified? I'm not aware that our domain is on any bad lists that would affect its reputation.

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
{count} votes

1 answer

Sort by: Most helpful
  1. Jeevan Shanigarapu 3,355 Reputation points Microsoft External Staff Moderator
    2025-11-04T22:22:42.6166667+00:00

    Hello @Alang,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand your question regarding the DNS timeout filtering. By default,

    1.       Azure does not block outbound DNS queries. However, some networking features may influence DNS resolution. Unless you specify custom DNS servers, Azure virtual machines use the default Azure DNS resolver at 168.63.129.16.

    2.       If DNS Security Policies are active in your virtual network, they may log or filter DNS traffic and, in some cases, block access to certain domains. Likewise, enabling the Azure Firewall DNS proxy allows DNS queries to be inspected and filtered using domain-based (FQDN) rules. Without these settings, DNS queries typically proceed without restriction.

    3.       If your Azure VM’s direct queries to the domain’s authoritative servers are timing out, it may be due to how the DNS resolver processes requests or issues with outbound connectivity. The Azure DNS resolver tends to be more strict and can fail quickly when it detects delegation or DNSSEC problems, while public DNS services like Google DNS are generally more flexible in handling these situations. Also, please note that default outbound access for VMs was deprecated in September 2025. If your VM still relies on it, you might experience intermittent connectivity or port exhaustion. Using a NAT Gateway or Azure Firewall helps maintain stable outbound DNS connections.

    4.       Since you’ve confirmed that your web server is reachable and that public DNS resolvers work fine, the routing itself looks healthy. Microsoft doesn’t block DNS lookups from Azure VMs, but filtering could still happen if a DNS Security Policy or Firewall DNS proxy rule is active in your setup.

    Next steps:

    1. Check your domain’s DNS setup using tools like dnsviz.net or the dig +trace command to identify any DNSSEC or delegation problems.
    2. If needed, use Azure DNS Private Resolver for hybrid setups, or switch to a reliable public resolver such as Google (8.8.8.8) or Quad9 (9.9.9.9).
    3. Connect a NAT Gateway to your subnet for stable outbound connectivity.
    4. Examine your DNS Security Policy and Azure Firewall DNS proxy rules to ensure domain lookups aren’t being blocked by mistake.

    Azure DNS overview: Azure DNS overview | Azure Docs
    Azure NAT Gateway: What is Azure NAT Gateway? | Microsoft Learn

    Kindly let us know if the above helps or you need further assistance on this issue.

    Please do not forget to "Accept the answer” and “up-vote it” wherever the information provided helps you, this can be beneficial to other community members__.__ It would be greatly appreciated and helpful to others.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.