Fortinet white logo
Fortinet white logo

Administration Guide

DNS troubleshooting

DNS troubleshooting

The following diagnose command can be used to collect DNS debug information. If you do not specify worker ID, the default worker ID is 0.

# diagnose test application dnsproxy 
worker idx: 0
1. Clear DNS cache
2. Show stats
3. Dump DNS setting
4. Reload FQDN
5. Requery FQDN
6. Dump FQDN
7. Dump DNS cache
8. Dump DNS DB
9. Reload DNS DB
10. Dump secure DNS policy/profile
11. Dump Botnet domain
12. Reload Secure DNS setting
13. Show Hostname cache
14. Clear Hostname cache
15. Show SDNS rating cache
16. Clear SDNS rating cache
17. DNS debug bit mask
99. Restart dnsproxy worker
To view useful information about the ongoing DNS connection:
# diagnose test application dnsproxy 3

Important fields include:

tls

1 if the connection is TLS, 0 if the connection is not TLS.

rt

The round trip time of the DNS latency.

probe

The number of probes sent.

To dump the second DNS worker's cache:
diagnose test application dnsproxy 7 1
To enable debug on the second worker:
diagnose debug application dnsproxy -1 1
To enable debug on all workers by specifying -1 as worker ID:
diagnose debug application dnsproxy -1 -1

DNS troubleshooting

DNS troubleshooting

The following diagnose command can be used to collect DNS debug information. If you do not specify worker ID, the default worker ID is 0.

# diagnose test application dnsproxy 
worker idx: 0
1. Clear DNS cache
2. Show stats
3. Dump DNS setting
4. Reload FQDN
5. Requery FQDN
6. Dump FQDN
7. Dump DNS cache
8. Dump DNS DB
9. Reload DNS DB
10. Dump secure DNS policy/profile
11. Dump Botnet domain
12. Reload Secure DNS setting
13. Show Hostname cache
14. Clear Hostname cache
15. Show SDNS rating cache
16. Clear SDNS rating cache
17. DNS debug bit mask
99. Restart dnsproxy worker
To view useful information about the ongoing DNS connection:
# diagnose test application dnsproxy 3

Important fields include:

tls

1 if the connection is TLS, 0 if the connection is not TLS.

rt

The round trip time of the DNS latency.

probe

The number of probes sent.

To dump the second DNS worker's cache:
diagnose test application dnsproxy 7 1
To enable debug on the second worker:
diagnose debug application dnsproxy -1 1
To enable debug on all workers by specifying -1 as worker ID:
diagnose debug application dnsproxy -1 -1