title | description | services | author | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|
Azure Firewall policy DNS settings |
You can configure Azure Firewall policies with DNS server and DNS proxy settings. |
firewall-manager |
vhorne |
firewall-manager |
how-to |
02/17/2021 |
victorh |
You can configure a custom DNS server and enable DNS proxy for Azure Firewall policies. You can configure these settings when you deploy the firewall or later from the DNS settings page.
A DNS server maintains and resolves domain names to IP addresses. By default, Azure Firewall uses Azure DNS for name resolution. The DNS server setting lets you configure your own DNS servers for Azure Firewall name resolution. You can configure a single or multiple servers.
- Select your firewall policy.
- Under Settings, select DNS Settings.
- Under DNS servers, you can type or add existing DNS servers that have been previously specified in your Virtual Network.
- Select Save.
- The firewall now directs DNS traffic to the specified DNS server(s) for name resolution.
You can configure Azure Firewall to act as a DNS proxy. A DNS proxy acts as an intermediary for DNS requests from client virtual machines to a DNS server. If you configure a custom DNS server, you should enable DNS proxy to avoid DNS resolution mismatch, and enable FQDN filtering in network rules.
If you don't enable DNS proxy, DNS requests from the client may travel to a DNS server at a different time or return a different response compared to that of the firewall. DNS proxy puts Azure Firewall in the path of the client requests to avoid inconsistency.
DNS Proxy configuration requires three steps:
- Enable DNS proxy in Azure Firewall DNS settings.
- Optionally configure your custom DNS server or use the provided default.
- Finally, you must configure the Azure Firewall’s private IP address as a Custom DNS address in your virtual network DNS server settings. This ensures DNS traffic is directed to Azure Firewall.
To configure DNS proxy, you must configure your virtual network DNS servers setting to use the firewall private IP address. Then, enable DNS Proxy in Azure Firewall policy DNS settings.
- Select the virtual network where the DNS traffic will be routed through the Azure Firewall.
- Under Settings, select DNS servers.
- Select Custom under DNS servers.
- Enter the firewall’s private IP address.
- Select Save.
- Select your Azure Firewall policy.
- Under Settings, select DNS settings.
- By default, DNS Proxy is disabled. When enabled, the firewall listens on port 53 and forwards DNS requests to the configured DNS servers.
- Review the DNS servers configuration to make sure that the settings are appropriate for your environment.
- Select Save.