| Description | This article describes how to configure VDOM DNS for multi-vdom system, where the system DNS is used with public DNS, and firewall rules on some of the VDOMs are configured with internal FQDN as the destination. |
| Scope | FortiOS v7.0.x, v7.2.x, v7.4.x, v7.6.x. |
| Solution |
It is a common practice in a multi-vdom system, as a system DNS, to use a public DNS server like FortiGuard server or any other publicly available provider. This is fine till the moment when there are FW rules configured with internal FQDN objects as the destination on some of the VDOMS. In the diagram below is shown a typical scenario. FortiGate with a few VDOMs. The VDOM root is the management VDOM with a connection to the internet and NPU links connected to one of the internal VDOM 'backend'.
With the default configuration, all VDOMs will use the system DNS to resolve FQDNs:
config system dns
If there are firewall rules on backend VDOM with FQDN as destination like below, then the system DNS cannot resolve those FQDNs, because publicly available DNS servers are used.
config firewall policy config firewall address
FortiOS provides the possibility to configure a VDOM DNS for non-management VDOMs. This means that if the management VDOM is root, then for any other VDOM can be configured a separate DNS which can resolve the internal FQDNs. For the backend, VDOM will be used as an internal DNS with IP 192.168.1.70, which is connected to the root VDOM. Backend VDOM DNS configuration:
config vdom edit backend config system vdom-dns end end
A static route for the DNS server on the backend VDOM is also needed:
config router static
On the root VDOM is needed a firewall rule is needed which allows the DNS traffic from the backend VDOM to the DNS server 192.168.1.70:
config firewall policy
Output from 'diagnose test application dnsproxy 6' shows a dump of the FQDN on FortiGate:
diagnose test application dnsproxy 6 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.