You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/firewall-manager/dns-settings.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,9 @@ A DNS server maintains and resolves domain names to IP addresses. By default, Az
20
20
> [!NOTE]
21
21
> For instances of Azure Firewall that are managed by using Azure Firewall Manager, the DNS settings are configured in the associated Azure Firewall policy.
22
22
23
-
### Configure custom DNS servers - Azure portal
23
+
### Configure custom DNS servers
24
+
25
+
#### [Portal](#tab/browser)
24
26
25
27
1. Under Azure Firewall **Settings**, select **DNS Settings**.
26
28
2. Under **DNS servers**, you can type or add existing DNS servers that were previously specified in your virtual network.
@@ -30,7 +32,7 @@ The firewall now directs DNS traffic to the specified DNS servers for name resol
30
32
31
33
:::image type="content" source="../firewall/media/dns-settings/dns-servers.png" alt-text="Screenshot showing settings for D N S servers.":::
32
34
33
-
###Configure custom DNS servers - Azure CLI
35
+
#### [CLI](#tab/azure-devops-cli)
34
36
35
37
The following example updates Azure Firewall with custom DNS servers by using the Azure CLI.
36
38
@@ -44,7 +46,7 @@ az network firewall update \
44
46
> [!IMPORTANT]
45
47
> The command `az network firewall` requires the Azure CLI extension `azure-firewall` to be installed. You can install it by using the command `az extension add --name azure-firewall`.
46
48
47
-
###Configure custom DNS servers - Azure PowerShell
49
+
#### [PowerShell](#tab/powershell)
48
50
49
51
The following example updates Azure Firewall with custom DNS servers by using Azure PowerShell.
50
52
@@ -55,6 +57,7 @@ $azFw.DNSServer = $dnsServers
55
57
56
58
$azFw | Set-AzFirewall
57
59
```
60
+
---
58
61
59
62
## DNS proxy
60
63
@@ -87,7 +90,7 @@ DNS proxy configuration requires three steps:
87
90
2. Optionally, configure your custom DNS server or use the provided default.
88
91
3. Configure the Azure Firewall private IP address as a custom DNS address in your virtual network DNS server settings. This setting ensures DNS traffic is directed to Azure Firewall.
89
92
90
-
#### Configure DNS proxy - Azure portal
93
+
#### [Portal](#tab/browser)
91
94
92
95
To configure DNS proxy, you must configure your virtual network DNS servers setting to use the firewall private IP address. Then enable the DNS proxy in the Azure Firewall **DNS settings**.
93
96
@@ -110,7 +113,7 @@ To configure DNS proxy, you must configure your virtual network DNS servers sett
110
113
111
114
:::image type="content" source="../firewall/media/dns-settings/dns-proxy.png" alt-text="Screenshot showing settings for the D N S proxy.":::
112
115
113
-
#### Configure DNS proxy - Azure CLI
116
+
#### [CLI](#tab/azure-devops-cli)
114
117
115
118
You can use the Azure CLI to configure DNS proxy settings in Azure Firewall. You can also use it to update virtual networks to use Azure Firewall as the DNS server.
116
119
@@ -136,7 +139,7 @@ az network firewall update \
136
139
--enable-dns-proxy true
137
140
```
138
141
139
-
#### Configure DNS proxy - Azure PowerShell
142
+
#### [PowerShell](#tab/powershell)
140
143
141
144
You can use Azure PowerShell to configure DNS proxy settings in Azure Firewall. You can also use it to update virtual networks to use Azure Firewall as the DNS server.
142
145
@@ -162,6 +165,8 @@ $azFw.DNSEnableProxy = $true
162
165
163
166
$azFw | Set-AzFirewall
164
167
```
168
+
---
169
+
165
170
### High availability failover
166
171
167
172
DNS proxy has a failover mechanism that stops using a detected unhealthy server and uses another DNS server that is available.
0 commit comments