Create a destination NAT policy rule for static translation
that also rewrites the IPv4 address in a DNS response.
When you configure a destination NAT policy
rule that performs static translation of IPv4 addresses, you can
also enable DNS Rewrite so that the firewall rewrites the IPv4 address
in a DNS response based on the original destination IP address and
translated destination IP address configured for the rule. The firewall
performs NAT on the IPv4 address (the FQDN resolution) in a DNS
response (that matches the rule) before forwarding the response
to the client; thus, the client receives the appropriate address
to reach the destination service.
View the DNS rewrite use
cases to understand DNS Rewrite and to help you determine
whether to specify that the rewrite occur in the
translation in the same NAT rule where you enable DNS rewrite.
Create a destination NAT policy rule that specifies
the firewall perform static translation of IPv4 addresses that match the
rule, and also specifies the firewall rewrite IP addresses in DNS
responses when that IPv4 address (from the A Record) matches the original
destination address in the NAT rule.
NAT policy rule.
) On the
enter a descriptive
for the rule.
You will also have to select a Source Zone or
zone, but DNS rewrite occurs at the global level; only the Destination
Address on the Original Packet tab is matched. DNS Rewrite ignores
all other fields on the Original Packet tab.
for Destination Address Translation, select
enter a new address.
Enable DNS Rewrite
when the IP address in the DNS response requires the opposite translation
that the NAT rule specifies. If the DNS response matches the
Address in the rule, translate the DNS response using the reverse
translation that the rule uses. For example, if the rule translates
IP address 188.8.131.52 to 192.168.1.10, the firewall rewrites a DNS
response of 192.168.1.10 to 184.108.40.206.
when the IP address
in the DNS response requires the same translation that the NAT rule specifies.
If the DNS response matches the
in the rule, translate the DNS response using the same translation
the rule uses. For example, if the rule translates IP address 220.127.116.11
to 192.168.1.10, the firewall rewrites a DNS response of 18.104.22.168