Description | This article describes how to create a local DNS database and make FortiGate respond to local DNS queries. |
Scope | FortiGate. |
Solution |
In some use cases, users need FortiGate to respond to local DNS queries. So in case the listening interface gets a DNS query it should respond with the local database A records.
The below steps are required to achieve the above:
From the CLI:
config system settings set gui-dns-database enable end
Make sure to add the correct interface so FortiGate can respond to the user's DNS queries.
Under the database section it can be defined as locally hosted DNS entries:
After the zone is specified, server FQDN can be specified as below:
A user trying to access prince.hosted_server FQDN will be getting a response with DNS A record:10.20.30.40. The test can be done on FortiGate CLI with a ping to FQDN.
Options to enable local DNS servers on FortiGate:
Related articles: Technical Tip: DNS database with FortiGate as a slave to a Windows AD DNS master |
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.