Skip to main content
Lmelim
New Member
February 8, 2022
Question

DNS Resolutions across VPN

  • February 8, 2022
  • 4 replies
  • 4851 views

Hey

I have an IPSEC VPN LAN-LAN up and running, but i cant ping other servers on the other side by name....I can only ping by IP.

I tried to follow the tech note below but the command SET DOMAIN is not avaiable on my FORTIGATE 7.0.3
https://community.fortinet.com/t5/FortiGate/Technical-Note-DNS-resolution-over-IPsec-SSL-VPN/ta-p/197018

How can i resolve names across IPSEC VPN?

4 replies

btan
Staff & Editor
Staff & Editor
February 9, 2022

Hi Lmelim,

 

As per KB: The set domain command will be available only when mode-cfg is enabled.
Hence, you may need to "set mode-cfg enable" first

 

Refer: https://docs.fortinet.com/document/fortigate/7.0.3/cli-reference/371620/config-vpn-ipsec-phase1-interface

 

Lmelim
LmelimAuthor
New Member
February 9, 2022

Hey

even issuing the command SET MODE-CFG ENABLE the SET DOMAIN is not available.
Does this command is only available for remote IPSEC VPN or is available for SITE TO SITE IPSEC vpn?
I cant make it work my DNS resolution..

kcheng
Staff & Editor
Staff & Editor
February 9, 2022

The respective configuration only works for Dynamic VPN tunnel. If you are having a Site-to-Site VPN configuration, it is not possible to set the domain. From where do you want to ping the remote site server? If it is FortiGate, you can change the DNS setting in FortiGate, if you are trying to ping from the internal hosts, you can check if it is configured with an internal DNS server that can resolves the server name on the remote network.

Lmelim
LmelimAuthor
New Member
February 9, 2022

Hey

I found the solution.
It was the DNS Filter activated on the VPN FIREWALL RULE that somehow was blocking DNS response...
once it was disabled, the DNS resolution started to work fine.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!