Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
New Contributor

Question about DNS

Hi all,


I have a question about DNS...

Imagine that I have a laptop connected to the FortiGate firewall.

On the firewall, I configured two rules:

  1. The first rule allow the traffic from the laptop ( to FQDN:, with the service set to 'all'.
  2. The second rule  allow traffic from the laptop ( to a DNS server ( with the service set to 'DNS'.

In the configuration under 'conf system DNS', I set up the DNS to be



1 . When the user opens a browser on the laptop to go to, the traffic will come to the firewall. The firewall will then send this traffic to the DNS to resolve. The DNS will resolve and tell the FortiGate the correct IP of After that, because I have a rule that allows traffic to, will this traffic be allowed?


2. What other options can I use to do this?



My diagram:






1. The browser sends a DNS query for "" to a DNS server configured/learned at the laptop first (it might not be, depending on what the laptop has) [policy #2].
2. Then the browser sends TCP SYN packets to the IP resolved by the DNS server [policy #1]. The FGT leans the IP of based on No.1.

If you run Wireshark on the laptop, you would see this flow.




Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Top Kudoed Authors