For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

VNET With Only One DNS Endpoint misconfiguration detected in code

VNET With Only One DNS Endpoint misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_182

Category - Subcategory

Public Exposure - VPC VCN VNet

Provider

AZURE

Severity

LOW

Framework

ARM, Bicep, Terraform, Terraform Plan

Impact

Virtual Networks (VNETs) in Azure are responsible for routing network traffic. For tasks like domain name resolution, DNS servers are used. However, if there's only a single DNS server associated with a VNET, it may introduce a single point of failure where the DNS IP address is not load-balanced. To avoid this single point of failure and potential network disruptions, it's recommended to have at least two DNS servers connected to your VNET.

This rule checks that the Azure Virtual Network has at least two connected DNS endpoints.

How to Fix

Resource:

  • azurerm_virtual_network

  • azurerm_virtual_network_dns_servers

Argument:

  • dns_servers [source,go]


resource "azurerm_virtual_network" "example" { name = "example-network" location = azurerm_resource_group.example.location resource_group_name = azurerm_resource_group.example.name

... other configurations ...

  • dns_servers = ["1.2.3.4", "1.2.3.5"] // Ensure at least 2 DNS servers are connected

}

Last updated

Was this helpful?