Troubleshooting Tip: FQDN is not resolving correct IP
| Description | This article indicates that the wrong IP was resolved for FQDN. |
| Scope | FortiGate. |
| Solution | After checking the IP address resolved by the command:
diagnose firewall fqdn list-ip vfid=0 name=anjumaneshiateali.org ver=IPv4 wait_list=0 timer=6 min_ttl=1261 cache_ttl=0 slot=9 num=1 wildcard=0 rcode=2
The DNS Database can also be viewed with the following command, which shows the resolved IP addresses of all of the FQDN.
diagnose test application dnsproxy 7
Example output:
worker idx: 0
Doing nslookup in the PC for the FQDN anjumaneshiateali.org will not resolve any IP, and the FortiGate is using private DNS.
Solution: Check with public DNS to determine what IP address the FQDN getting resolved to. Before changing the DNS to public IP, clear the DNS cache on FortiGate by the command:
diagnose test application dnsproxy 1 <----- Test Level 1: clear DNS cache.
If the FQDN is not resolved to the correct IP, the traffic will hit the implicit deny policy.
Note: Configure the client computer or FortiGate to use the same DNS server if the DNS settings are different. Then, use 'ipconfig /flushdns' to clear the client DNS cache and see whether it fixes the problem.
Related article: |
