Skip to main content
mcdaniels
New Member
Sep 11, 2017 8:03 AM UTC
Question

FortiAP: Manipulate DNS to resolv to internal IP

Hi,

is there a possibility to manipulate the DNS lookup for one FQDN  (for specific SSIDs) to resolv to an internal address (LAN-Port)? All other adresses should resolve via public DNS.

 

The policy works, but I have to manipulate the DNS-lookups.

 

I think I will have to activate the fortigate DNS-Server?

 

I don't want to use the hosts file on the clientside.

 

4 replies

ede_pfau
SuperUser
SuperUser
Sep 11, 2017 11:37 AM UTC

hi,

 

if the WiFi clients use the FGT as DNS, there is a "DNS translation" feature for this. Basically, the FGT sniffs for DNS requests to this FQDN and exchanges the resolved address. You'll find it in the CLI reference.

Translate
mcdaniels
mcdanielsAuthor
New Member
Sep 11, 2017 5:14 PM UTC

Hi,

thanks for your reply.

I solved it that way:

-Activated Fortigate DNS Database

-Set up DNS zone / Primary / Slave / recursive

-Set up Host A Entry for internal DNS lookup

-Applied the settings to the SSID in DNS-Database Settings (DNS Server on Interface -> SSID Name)

-Set DNS-Server-IP for the SSID to use same IP as interface IP.

-Set up a Policy from WLAN-SSID to LAN (IP of device I would like to reach via the DNS).

 

Works!

Translate
ede_pfau
SuperUser
SuperUser
Sep 11, 2017 9:07 PM UTC

Well done. Quite straightforward once it's done, right?

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024