DNS Firewall VPC configuration - Amazon Route 53
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

DNS Firewall VPC configuration

The DNS Firewall configuration for your VPC determines whether Route 53 Resolver allows queries through or blocks them during failures, for example when DNS Firewall is impaired, unresponsive, or not available in the zone. Resolver enforces a VPC's firewall configuration whenever you have one or more DNS Firewall rule groups associated with the VPC.

You can configure a VPC to fail open or fail closed.

  • By default, the failure mode is closed, which means that Resolver blocks any queries for which it doesn't receive a reply from DNS Firewall and sends a SERVFAIL DNS response. This approach favors security over availability.

  • If you enable fail open, Resolver allows queries through if it doesn't receive a reply from DNS Firewall. This approach favors availability over security.

To change the DNS Firewall configuration for a VPC (console)
  1. Sign in to the Amazon Web Services Management Console and open the Resolver console at https://console.amazonaws.cn/route53resolver/.

  2. In the navigation pane under Resolvers, choose VPCs.

  3. In the VPCs page, locate and edit the VPC. Change the DNS Firewall configuration to fail open or fail closed as needed.

To change the DNS Firewall behavior for a VPC (API)
  • Update your VPC firewall configuration by calling UpdateFirewallConfig and enabling or disabling FirewallFailOpen.

You can retrieve a list of your VPC firewall configurations through the API by calling ListFirewallConfigs.