Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
simonorch
Contributor

DNS forwarding to seperate servers

I have a guest network which is routed to the internet via a seperate vlan on the wan side. 

The guest network uses a a captive portal on a different network, in order to implement https for the captive portal i need clients to dns resolve the CP url, this i can do with a dns database on the FG and setting dhcp to use the FG interface for dns.

This works fine except for one thing.

Forwarding uses the DNS servers configured on the FG, the forwarders configured on the dns database only work for that domain, all other dns lookups use the box dns servers. This is a problem that creates a lot of extra configuration work arounds.

 

The Question is. Is it possible to define specific DNS forwarders for a specific vlan/net  and not use the 'default' DNS servers configured on the box which are used for all other non-guest network DNS?

 

what i mean is.

 

let's say the FG is configured with 10.10.10.10 as a dns server

 

vlan 10 dhcp is configured to use the FG interface as DNS so that clients can resolve an internal captive portal. but i want DNS forwarding to use 8.8.8.8 and not 10.10.10.10

 

hope that makes sense

 

Simon

NSE8
Fortinet Expert partner - Norway

NSE8Fortinet Expert partner - Norway
2 REPLIES 2
Dave_Hall
Honored Contributor

What's preventing you from manual setting the DNS servers on the DHCP server settings for the interface?

 

Edit:  Set up a recursive DNS server for the guest network and add a record for the captive portal.

 

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C
simonorch

Thanks but already done. The problem is the forwarders. The work around i have at the moment is to configure the guest network public DNS servers as the fortigate DNS servers and all other networks using dhcp to use the company internal dns servers. It works but isn't ideal as this will be pushed out to over 600 boxes and to ensure it can work i need to add a few per location unique source IPs and static routes

 

Ideally it would be great if you could configure custom dns forwarders on each interface dns service

 

Simon

NSE8
Fortinet Expert partner - Norway

NSE8Fortinet Expert partner - Norway
Labels
Top Kudoed Authors