Fortinet How to Configure
How to configure FortiSASE split DNS for internal applications
Send requests for one internal DNS suffix to a private resolver through Secure Private Access (SPA). Keep public lookups on the existing DNS path, then verify the DNS answer and the HTTPS connection separately from an off-network FortiClient laptop.
QuantumCrafters Studio · Guide 4 of 12
One tunnel, two DNS paths
-
FortiClientRemote endpoint
-
FortiSASE PoPChecks the queried suffix
-
FortiGate hubPrivate SPA overlay
-
Internal DNS10.30.10.53
-
Default DNSVPN implicit rule
portal.corp.example.test → corp.example.test
How FortiSASE splits DNS traffic
FortiSASE uses the requested name to select a resolver. In this lab, a connected FortiClient requests portal.corp.example.test. The FortiSASE point of presence (PoP) matches corp.example.test, sends the query through the FortiGate SPA hub to 10.30.10.53, and returns the private answer 10.30.20.25 to the laptop. A request for www.example.com goes to the public resolver selected by the existing VPN Implicit DNS Rule. The laptop opens a separate HTTPS connection to the app after it receives the private answer. Fortinet split DNS rules · Fortinet VPN DNS settings
The guide follows FortiSASE 26.1.107 Mature with BGP per overlay, one working SPA hub, and an agent-based remote user on Windows. Compare the portal labels with the documentation for your tenant build before making changes. The diagram illustrates the expected traffic path. Verify it on your own tenant.
Prepare the pilot
| Item | Isolated lab setup |
|---|---|
| Endpoint | One managed Windows laptop running FortiClient off the corporate LAN |
| SPA | Working FortiGate hub connection with BGP per overlay |
| DNS suffix | corp.example.test, hosted privately for this lab |
| Private resolver | 10.30.10.53 on UDP and TCP port 53 |
| Existing private record | portal.corp.example.test has an A record of 10.30.20.25 |
| App check | https://portal.corp.example.test/health returns the expected healthy response over TCP 443 |
| Public control | www.example.com resolves through the existing approved public resolver |
| Negative control | absent.corp.example.test is absent from the private zone and returns NXDOMAIN in this lab |
Use this lab suffix or a dedicated internal test suffix you control. Have the DNS owner verify the A record and the absent name from an approved host on the resolver's network before the remote test. Confirm that a wildcard or local override cannot answer the negative control. Record the current VPN Implicit DNS Rule, any overlapping split DNS rules, relevant policies, and the public lookup baseline. Account for other users on the tenant who could query the new suffix.
Check the security profile that applies to the remote agent. In this release, Fortinet directs you to Configuration → Security to confirm SSL Inspection displays Deep inspection. Use the approved profile and verify the managed test laptop trusts the intended FortiSASE inspection CA, particularly when testing browsers that use DNS over HTTPS (DoH). Keep changes within the pilot's approved policy scope. Fortinet agent-based split DNS prerequisites · Fortinet certificate and deep inspection modes
1. Make the resolver reachable through SPA
- Open Network → Secure Private Access → Health and confirm the intended hub's VPN and BGP state. Select the pilot PoP and choose View Learned BGP Routes. Confirm it learned a route covering
10.30.10.53from the intended hub. Check the hub's onward route and the reply route for the actual source address the resolver sees. Record any source translation already in use. Fortinet SPA health and learned routes - In Configuration → Hosts → Create → Host, create a resolver host with Location set to Private Access Hub, Type set to Subnet, and IP/Netmask set to
10.30.10.53/32. - Open Configuration → Policies → Private Access → To hubs and choose +Create. Select the remote agent source scope and restrict User to the approved pilot group. Set Destination to Specify and select the resolver host. In Service, use entries covering UDP 53 and TCP 53. Set Action to Accept, enable the policy, and select All Sessions for the pilot. Confirm its order and save.
- On the hub, confirm that the relevant firewall policy and any resolver-side access rules allow the approved source to reach the resolver on both DNS transports. Preserve the existing app access policy for
10.30.20.25:443and verify it independently.
Use an authorized host on the resolver network to check the resolver over both transports. A direct lookup to the resolver establishes its answer and transport reachability from that host. The remote test in step 3 establishes whether the agent flow matches the split DNS rule. Fortinet BGP per overlay · Fortinet host objects · Fortinet client-to-server Private Access policies
2. Add the split DNS rule
- Go to Configuration → DNS and select Create.
- In Create DNS Rule, enter
10.30.10.53for Primary DNS Server andcorp.example.testin Domains. Leave Secondary DNS Server empty in this single-resolver lab. For a redundant design, use a second private resolver that answers for the same zone and has equivalent SPA reachability. - Click OK and confirm the expected rule appears in the DNS table. Retain the original VPN Implicit DNS Rule for public names.
This BGP per overlay workflow uses the existing SPA routing. Fortinet documents the Access Type selector for BGP on loopback. If you use that design, verify the version-specific workflow and select Private for a resolver reached through SPA. Fortinet split DNS configuration
3. Verify private and public DNS
On the off-network test laptop, reconnect FortiClient so the pilot session uses the current policy. Clear the Windows DNS cache and run these lookups through the resolver used by the connected endpoint. Note the test time and region so you can correlate results with hub traffic and resolver logs. If you run a subsequent browser test, use a fresh session and check its managed DoH setting.
Clear-DnsClientCache
Resolve-DnsName portal.corp.example.test. -Type A -DnsOnly -NoHostsFile
Resolve-DnsName www.example.com. -Type A -DnsOnly -NoHostsFile
Resolve-DnsName absent.corp.example.test. -Type A -DnsOnly -NoHostsFile
| Test | Expected result and evidence |
|---|---|
| Private name | The A answer is 10.30.20.25. Correlate the QNAME and timestamp with the private resolver's query log or an authorized capture and the expected hub policy. |
| Public control | Public resolution matches the baseline. Confirm the existing implicit rule is still selected and the private resolver has no matching query from the pilot test. |
| Missing private name | The private resolver receives the query and returns NXDOMAIN. Confirm the response code at the resolver or in an approved capture. A timeout suggests that the route, policy, return flow, or resolver needs checking. |
Repeat from a fresh test session if your evidence is served from cache. To isolate DNS transport on the resolver network, query 10.30.10.53 explicitly from an authorized test host and repeat with -TcpOnly. Use the resolver-side log or capture to confirm the transports used. Microsoft Resolve-DnsName reference · Fortinet split DNS configuration
4. Verify the application separately
On the laptop, open https://portal.corp.example.test/health. Confirm the endpoint connects to 10.30.20.25 over TCP 443, the hostname and TLS checks succeed, and the app returns the expected response. Use normal authentication where required. Retain the matching application policy result separately from the DNS evidence. Fortinet client-to-server Private Access policies
Troubleshoot the first failing step
| Observation | What to check |
|---|---|
| The internal lookup follows the default DNS path | Confirm the full hostname and suffix, FortiClient connection, the selected rule, and whether the application uses a different resolver or managed browser DoH. Review the effective SSL inspection and trusted CA. |
| The resolver never sees the private query | Check the split rule, private DNS policy hit, route to 10.30.10.53, hub policy, and both DNS transports. |
| The resolver replies but the client times out | Compare ingress and egress evidence at the hub. Check NAT and the reply route for the source IP actually seen by the resolver. |
| The private zone returns an unexpected answer | Check zone records, views, wildcards and cache on the resolver. Match the query name and record type across the endpoint and resolver evidence. |
| DNS is correct but the app fails | Check the separate SPA app route and TCP 443 policy, then TLS, app health and authentication. Review Web Filter events if the connection is blocked after DNS succeeds. |
If security logs identify a Newly Observed Domain block for the approved private hostname, review the matching security profile. Fortinet documents hostname-specific URL Filter or Domain Filter entries for this case. Keep any exception scoped to the approved hostname. Fortinet notes on filtering private domains
Roll back and save evidence
If the pilot fails or affects existing users, remove the new suffix rule or restore its recorded prior values. Revert only the resolver and profile policy changes made for this pilot. Reconnect the test agent, clear cached results, and repeat the public control and any affected baseline app checks. Save the tenant build, agent version, rule fields, resolver route, timestamps, query results and separate HTTPS outcome. Redact user identities and sensitive names before sharing logs or captures.
For the earlier overlay and private app setup, see How to connect FortiSASE Secure Private Access to a FortiGate hub.
