Fully qualified domain name objects overview (original) (raw)

Fully qualified domain name (FQDN) objects contain domain names that you specify in the domain name format. You can use FQDN objects as sources for ingress rules or as destinations for egress rules in a hierarchical firewall policy, global network firewall policy, or regional network firewall policy.

You can combine FQDNs with other parameters. For details about source parameter combinations in ingress rules, seeSources for ingress rules. For details about destination parameter combinations in egress rules, see Destinations for egress rules.

FQDN objects supportCloud DNS response policies,VPC network-scoped managed private zones,Compute Engine internal DNS names, and public DNS zones. This support applies as long as the Virtual Private Cloud (VPC) network doesn't have an outbound server policythat specifies an alternative name server. For more information, see VPC network resolution order.

Map FQDN objects to IP addresses

Cloud Next Generation Firewall periodically resolves FQDN objects to IP addresses. Cloud NGFW follows the Cloud DNSVPC name resolution order in the VPC network that contains the firewall rule's targets.

Cloud NGFW uses the following behavior for IP address resolution:

Considerations for FQDN objects

Consider the following for FQDN objects:

  1. Because FQDN objects map to and are programmed as IP addresses, Cloud NGFW uses the following behavior when two or more FQDN objects map to the same IP address. Assume you have the following two firewall rules that apply to the same target:
    • Rule 1: priority 100, ingress allow from source FQDN example1.com
    • Rule 2: priority 200, ingress allow from source FQDN example2.com
      If both example1.com and example2.com resolve to the same IP address, ingress packets from both example1.com and example2.com match the first firewall rule because this rule has a higher priority.
  2. Considerations for using FQDN objects include the following:
    • A DNS query can have unique answers based on the location of the requesting client.
    • DNS answers can be highly variable when a DNS-based load balancing system is involved.
    • A DNS answer might contain more than 32 IPv4 addresses.
    • A DNS answer might contain more than 32 IPv6 addresses.
      In the preceding situations, because Cloud NGFW performs DNS queries in each region that contains the VM network interface to which the firewall rule applies, the programmed IP addresses in firewall rules don't contain all possible IP addresses associated with the FQDN.
      Most Google domain names, such as googleapis.com, are subject to one or more of these situations. Use IP addresses oraddress groups instead.
  3. Avoid using FQDN objects with DNS A records that have a time to live (TTL) of less than 90 seconds.

Format domain names

FQDN objects must follow the standard FQDN format. This format is defined in RFC 1035,RFC 1123, andRFC 4343. Cloud NGFW rejects FQDN objects that include a domain name that doesn't meet all of the following formatting rules:

Cloud NGFW doesn't support equivalent domain names in the same firewall rule. For example, if the two domain names (or Punycode representations of IDNs) differ at most by a terminal dot (.), Cloud NGFW considers them equivalent.

What's next