Technical Tip: Using DNS filter profile to redirect dynamically resolved IPs to one internal IP
| Description | This article describes how to use DNS Filter profile Redirect Portal IP for internal DNS resolution. |
| Scope | FortiGate |
| Solution | There are several situations when DNS translation cannot fit the client’s needs. One of those situations is when the host resolution will be resolved to a dynamic IP like AWS load balancers, CDN, etc. where the response will return a variable IP each time.
This is particularly required when the user does not have internal DNS servers defined to create its own DNS record.
One way to solve this will be using the Redirect portal IP field to point to the internal IP. This approach to solving this is combining Domain Filter with specifying the internal IP under the 'Redirect Portal IP' option.
Using CLI:
config dnsfilter domain-filter config dnsfilter profile
Attach this DNS Filter profile to the firewall policy that matches the DNS request from internal users.
Note: Not the same policy matches with the traffic flow. |