Technical Tip: Split DNS support for SSL VPN
Description
Split DNS for SSL VPN portals allows to specify which domains are resolved by the DNS server specified by the VPN, while all other domains are resolved by the DNS specified locally.
This article describes this feature.
Scope
FortiGate.
Solution
FortiClient receives this information when the client connects in tunnel mode.
FortiClient will push the DNS servers specified to the client’s computer, and all DNS requests will first attempt use this DNS server.
The FortiClient network driver will intercept DNS requests; if they match the split-dns listed, the DNS request will go across the tunnel and be resolved by the specified DNS servers.
If the domain does not match split-dns then the FortiClient network driver will respond to the DNS request with 'no such name', forcing the DNS request to be resolved by the physical adapter DNS.
Add the split DNS Servers IP address in split-tunneling-routing-address in the SSL VPN Web portal, and also create the Firewall policy allowing SSL VPN clients to connect to the split-dns servers.
Configure split DNS support for SSLVPN portals from CLI.
edit "SPLIT-DNS-SUBNET"
set subnet 192.168.1.0 255.255.255.252
next
end
Configure split DNS support for SSL VPN portals from the GUI.
 
If all SSL VPN portals have DNS settings configured, remove the DNS settings from the global SSL VPN settings and from the SSL VPN web portal.
unset dns-server1
unset dns-server2
end
edit "test"
unset dns-server1
unset dns-server2
end

Verification :
Refer logs below, once the user connects to the SSL VPN user system, Ethernet adapter, and virtual adapter settings:
Ethernet adapter Ethernet 4:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Fortinet SSL VPN Virtual Ethernet Adapter <--
Physical Address. . . . . . . . . : 00-09-0F-AA-00-01
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::daa6:e56b:356c:850f%34(Preferred)
IPv4 Address. . . . . . . . . . . : 10.24.10.1(Tentative)
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 570427663
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2F-41-40-ED-00-70-68-6F-01-01
DNS Servers . . . . . . . . . . . : 8.8.8.8 <-- Client system DNS.
192.168.1.1 <-- 192.168.1.2 <-- SSL VPN adapter has both DNS (split DNS).
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Ethernet Adapter
Physical Address. . . . . . . . . : 00-70-68-6F-01-01
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 172.29.6.50(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.192.0
Default Gateway . . . . . . . . . : 172.29.10.24
DNS Servers . . . . . . . . . . . : 8.8.8.8 <-- There is no change.
NetBIOS over Tcpip. . . . . . . . : Enabled
diagnose debug application sslvpn -1
diagnose debug application tvc -1 <-- For SSL VPN client.
diagnose debug application fnbamd -1 <-- For Remote user authentication debug command.
diagnose firewall auth list
get vpn ssl monitor