Troubleshooting Tip: Identifying and solving a DNS issue while provisioning a FortiToken
| Description | This article describes how to identify and solve DNS issues while provisioning a free FortiToken. |
| Scope | FortiGate, FortiToken. |
| Solution | Sometimes, when trying to assign a FortiToken to the users in FortiGate, a 'FortiCare Unreachable' message may appear.
One possible cause of this error is the DNS being unable to resolve the hostname.
Perform a ping test in FortiGate:
execute ping fds1.fortinet.com
The ping will fail with the message 'unable to resolve hostname'.
Run the debug commands below and simultaneously ping the FQDN 'directregistration.fortinet.com' on FortiGate.
execute ping directregistration.fortinet.com
In CLI session 2: diagnose debug reset diagnose debug application dnsproxy -1 diagnose debug enable
diagnose debug disable
The DNS debug result will show output similar to the following.
Output from DNS debug:
last_tx=0 ftg_last_tx=0 domain=directregistration.fortinet.com (orig id: 0x0000 local id:0x0000 active)
Cannot find local ID in the output means it is not releasing the local-ID resource.
To resolve this, restart the DNS proxy by using the following command:
diagnose test application dnsproxy 99 Additionally, kill the process with or without the PID:
diagnose sys process pidof dnsproxy
Or:
fnsysctl killall dnsproxy
Once the DNS proxy daemon has been restarted, perform a ping test again. This time, it should be successful. The FortiTokens can then be provisioned to the intended users. |
