Description
This article describes the steps to configure multiple DNS servers for IPsec dial-up VPN.
Scope
FortiGate.
Solution
Note: Up to 3 IPv4 DNS servers and 3 IPv6 DNS servers for dial-up tunnel can be configured.
Note: If already having VPN Dialup configured, skip to item 5. 'Configuration in CLI'.
Initial configuration (if having not yet configured VPN Dialup)
Client-based: Connection application (FortiClient or Cisco Client).
Native: Connection with the device natively (IOS, Android, Windows), without additional applications.
In step 2 of the wizard, 'Authentication'.
In step 3 of the wizard, 'Policy & Routing'.
Configure the parameters of:
Configuration in the CLI
Below is shown in the CLI, the configuration made through the GUI, and how to proceed to configure the other 2 IPv4 DNS servers.
This is how the VPN configuration looked in the CLI after creating it in the GUI Wizard.
The configuration can be reviewed with the 'show' or 'show full' command.
Note: The preference of the DNS server in the user machine is based on which DNS server IP is configured first under phase1 configuration.
For example:
set ipv4-dns-server1 10.1.1.1 <----- 1st order.
set ipv4-dns-server2 8.8.8.8 <----- 2nd order.
In the example above, the DNS server 10.1.1.1 will be given first preference.
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 2026 Fortinet, Inc. All Rights Reserved.