
To set up a FortiGate DNS server, you'll need to configure the DNS settings on the device. This involves specifying the DNS server IP addresses and enabling DNS services.
You can access the DNS settings on a FortiGate device by navigating to System > Network > DNS. From here, you can configure the DNS server IP addresses, DNS forwarders, and other settings.
The DNS server IP addresses should be set to the IP addresses of the DNS servers you want to use. You can enter up to 8 IP addresses, and you can also specify the DNS server port numbers.
To enable DNS services, simply toggle the "Enable DNS" switch to the right. This will allow the FortiGate device to act as a DNS server.
Broaden your view: Azure Dns Server Ip
Configure System
To configure the system for a FortiGate DNS server, you need to enable DNS server options in the GUI. This involves going to System > Feature Visibility and enabling DNS Database in the Additional Features section.
To configure DNS forwarding, you'll need to go to Network > DNS Servers and create a new DNS service on your internal network interface. You'll also need to add any local network addresses to the DNS Database section.
You can enable DNS services on an interface by going to Network > DNS Servers and creating a new DNS service on the interface you want to use. Set the mode to Recursive and click OK.
To use FortiGate as a recursive DNS server, the interface mode should be set to Recursive. This allows the external DNS forwarders to be queried if the request cannot be fulfilled.
Here's a summary of the steps to enable DNS services on an interface:
- Go to Network > DNS Servers
- Create a new DNS service on the interface you want to use
- Set the Mode to Recursive
- Click OK
By following these steps, you can configure your FortiGate as a recursive DNS server and use it to resolve DNS queries for devices on your network.
Enabling DNS Services
To enable DNS services on your FortiGate DNS server, you'll need to follow a few steps. First, go to System > Feature Visibility and enable the DNS Database in the Additional Features section. Then, click Apply to save your changes.
Now that DNS Database is enabled, you can create a new DNS zone. To do this, go to Network > DNS Servers and click Create New in the DNS Database table. Set the Type to Primary and the View to Shadow, which will restrict access to internal users only.
When setting up your DNS zone, be sure to enter a valid DNS Zone, Domain Name, Hostname for the DNS server, and a Contact Email Address for the administrator. You should also disable Authoritative, as this is not required for a primary DNS zone.
If you want to enable DNS services on a specific interface, such as your LAN interface, you'll need to follow a slightly different process. In the DNS Service on Interface table, click Create New and select the Interface for the DNS server. Set the Mode to Recursive and click OK to save your changes.
Alternatively, you can enable DNS on your local interface by going to Network > Interface and selecting the Internal interface. In the DNS Server section, select Same as Interface IP to use the FortiGate DNS Server in your local network.
You might enjoy: Azure Ad Connect Migrate to Another Server
Adding DNS Entries
To add DNS entries, you'll need to create a new entry in the DNS Entries table. Click Create New and choose Type Address (A). Next, enter the Hostname and IP Address, and set TTL to Use Zone TTL. Don't forget to enable Status and click OK.
You can also add a local DNS record in the FortiGate DNS database. To do this, go to Network > DNS Database and click Create New to create a new DNS zone. Fill in the DNS zone details as needed.
To enable DNS on your local interface, go to Network > Interface and select the Internal interface. In the DNS Server section, select Same as Interface IP to use the FortiGate DNS Server in your local network.
Here's a quick summary of the steps:
- Create a new DNS entry in the DNS Entries table
- Add a local DNS record in the FortiGate DNS database
- Enable DNS on your local interface
Navigating FortiOS
Navigating FortiOS can be a bit overwhelming at first, but once you get the hang of it, you'll be a pro in no time.
To start, you need to access the FortiOS web-based manager, which is typically accessed by typing the IP address of your FortiGate device into a web browser.
The FortiOS web-based manager is divided into several sections, including the Dashboard, System, and Network sections, each serving a specific purpose.
The Dashboard section provides an overview of your network, including information on the number of connected users, traffic, and security threats.
In the System section, you can configure settings such as the system name, timezone, and language.
Navigating through these sections can be done using the navigation menu on the left-hand side of the screen.
To access the DNS settings, go to the Network section, then click on the "DNS" option.
For your interest: C Programming Web Server
Configure Interface Steps
To configure your interface, you need to enable DNS services on it. This involves selecting the interface for the DNS server, such as LAN, and setting the mode to Recursive.
You can also enable DNS on your local interface by going to Network > Interface and selecting the Internal interface. From there, you can choose to use the FortiGate DNS Server by selecting Same as Interface IP in the DNS Server section.
To do this, you'll need to follow a few simple steps. Here's a quick rundown of what you need to do:
- Create a new entry in the DNS Service on Interface table.
- Select the interface for the DNS server, such as LAN.
- Set the mode to Recursive.
- Click OK to save your changes.
Alternatively, you can use the following steps to enable DNS on your local interface:
- Go to Network > Interface and select the Internal interface.
- Select Same as Interface IP in the DNS Server section.
Navigate to Settings
Navigating to settings on FortiOS can be a bit tricky, but don't worry, I've got you covered. To access the DNS settings, you'll need to log in to your FortiOS device and navigate to the Network section.
Once you're logged in, go to Network > DNS. You'll see options for both System DNS and DNS servers.
To access the interface settings, go to Network > Interface. From there, you can select the internal interface and configure the DNS settings.
Here are the steps to enable DNS on the local interface:
- Select the internal interface
- In the DNS Server section, select Same as Interface IP to use the FortiGate DNS Server in your local network.
To enable DNS server options in the GUI, you'll need to go to System > Feature Visibility. From there, you can enable the DNS Database in the Additional Features section.
By following these steps, you'll be able to access the DNS settings and configure your FortiOS device to meet your needs.
Understanding DNS Options
You can enable DNS server options in the GUI by going to System > Feature Visibility and enabling DNS Database in the Additional Features section.
To configure DNS Service on FortiGate, you can use the GUI or CLI. In the GUI, go to Network > DNS Servers and create a new DNS Service on Interface by selecting an interface.
There are three modes in which DNS Service on FortiGate can work: Recursive, Non-Recursive, or Forward to System DNS (server).
To use FortiGate as a recursive DNS server, you need to create an unauthoritative primary recursive DNS server using FortiGate for the local network. The interface mode is recursive so that, if the request cannot be fulfilled, the external DNS forwarders will be queried.
You can configure and use FortiGate as a DNS server in your network by enabling DNS Service on a specific interface. FortiGate will listen for DNS Service on that interface.
Discover more: How to Create a Website Hosting Server
Here are the available modes for DNS Service on FortiGate:
- Recursive
- Non-Recursive
- Forward to System DNS (server)
To apply a DNS Filter profile to Recursive Mode and Forward to System DNS Mode, you can use the GUI or CLI. In the GUI, go to Network > DNS Servers and select the DNS Service on Interface you want to configure.
To configure DNS Service on FortiGate using CLI, you need to enable DNS Service on Interface and apply a DNS Filter profile. For example, you can use the following command to enable DNS Service on Interface port10 and apply DNS Filter profile "demo": config system dns-server edit “port10” set mode forward-only set dnsfilter-profile “demo”.
FortiOS Compatibility and Parameters
FortiOS version v6.0.0 and later support configuring DNS servers, while v6.0.5 and later also support it.
If you're using FortiOS v6.4.4 or later, you'll be happy to know that configuring DNS servers is supported.
Here's a list of FortiOS versions that support configuring DNS servers:
FortiOS Version Compatibility
FortiOS Version Compatibility is a crucial aspect to consider when planning your network configuration.
FortiOS Version 6.0.0 and later versions support the fortios_system_dns_server parameter.
Some FortiOS versions have a more extensive list of supported parameters. For example, FortiOS Version 6.2.7 and later versions also support the fortios_system_dns_server parameter.
Here's a breakdown of the supported versions:
All supported FortiOS versions have the fortios_system_dns_server parameter enabled.
Parameters
As you start working with FortiOS, you'll need to understand the parameters that govern its functionality.
The access_token parameter is used for token-based authentication, and it's generated from the GUI of Fortigate. This token is not required, but it's a convenient way to authenticate your requests.
The enable_log parameter allows you to enable or disable logging for tasks. By default, logging is set to False, but you can change this setting as needed.
The vdom parameter specifies the virtual domain, which is a virtual instance of the FortiGate that can be configured and used as a different unit. The default vdom is set to root.
Expand your knowledge: Azure Virtual Network Dns Servers

To create or remove an object, you'll need to specify the state parameter, which has two possible values: present or absent. This parameter is required, so make sure to set it correctly.
Here's a summary of the parameters:
Featured Images: pexels.com


