Skip to content

Commit 349fb7e

Browse files
committed
add tabs
1 parent bc3a8c3 commit 349fb7e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

articles/firewall-manager/dns-settings.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ A DNS server maintains and resolves domain names to IP addresses. By default, Az
2020
> [!NOTE]
2121
> For instances of Azure Firewall that are managed by using Azure Firewall Manager, the DNS settings are configured in the associated Azure Firewall policy.
2222
23-
### Configure custom DNS servers - Azure portal
23+
### Configure custom DNS servers
24+
25+
#### [Portal](#tab/browser)
2426

2527
1. Under Azure Firewall **Settings**, select **DNS Settings**.
2628
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
3032

3133
:::image type="content" source="../firewall/media/dns-settings/dns-servers.png" alt-text="Screenshot showing settings for D N S servers.":::
3234

33-
### Configure custom DNS servers - Azure CLI
35+
#### [CLI](#tab/azure-devops-cli)
3436

3537
The following example updates Azure Firewall with custom DNS servers by using the Azure CLI.
3638

@@ -44,7 +46,7 @@ az network firewall update \
4446
> [!IMPORTANT]
4547
> 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`.
4648
47-
### Configure custom DNS servers - Azure PowerShell
49+
#### [PowerShell](#tab/powershell)
4850

4951
The following example updates Azure Firewall with custom DNS servers by using Azure PowerShell.
5052

@@ -55,6 +57,7 @@ $azFw.DNSServer = $dnsServers
5557
5658
$azFw | Set-AzFirewall
5759
```
60+
---
5861

5962
## DNS proxy
6063

@@ -87,7 +90,7 @@ DNS proxy configuration requires three steps:
8790
2. Optionally, configure your custom DNS server or use the provided default.
8891
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.
8992

90-
#### Configure DNS proxy - Azure portal
93+
#### [Portal](#tab/browser)
9194

9295
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**.
9396

@@ -110,7 +113,7 @@ To configure DNS proxy, you must configure your virtual network DNS servers sett
110113

111114
:::image type="content" source="../firewall/media/dns-settings/dns-proxy.png" alt-text="Screenshot showing settings for the D N S proxy.":::
112115

113-
#### Configure DNS proxy - Azure CLI
116+
#### [CLI](#tab/azure-devops-cli)
114117

115118
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.
116119

@@ -136,7 +139,7 @@ az network firewall update \
136139
--enable-dns-proxy true
137140
```
138141

139-
#### Configure DNS proxy - Azure PowerShell
142+
#### [PowerShell](#tab/powershell)
140143

141144
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.
142145

@@ -162,6 +165,8 @@ $azFw.DNSEnableProxy = $true
162165
163166
$azFw | Set-AzFirewall
164167
```
168+
---
169+
165170
### High availability failover
166171

167172
DNS proxy has a failover mechanism that stops using a detected unhealthy server and uses another DNS server that is available.

0 commit comments

Comments
 (0)