C:\>nslookup Default Server: resolver1.opendns.com Address: 208.67.222.222Tunnel Connected
C:\>nslookup Default Server: dc01.abcdefg.com Address: 172.16.0.250So far so good, I guess. We are in a Split DNS environment, so if I attempt to resolve a server name, it will resolve whether the tunnel is connected or not, but with different addresses. Externally it resolves to our wildcard external address, internally, the host record is returned. Tunnel Disconnected
C:\>ping fs01.abcdefg.com Pinging fs01.abcdefg.com [72.22.X.X] with 32 bytes of data:Tunnel Connected
C:\>ping fs01.abcdefg.com Pinging fs01.abcdefg.com [172.16.0.133] with 32 bytes of data:Again so far so good, I guess. The problem is, in my testing over the past few days, it seems like that change is not immediate. If I attempt to ping an internal system immediately (within 2 to 4 seconds) after seeing the FortiClient report " Connected" on the tunnel, it will give me the same results as if it was disconnected every time. Then that DNS entry is cached and will continue to fail until some distant timeout is passed. If I wait and don' t do anything until about 8 or 10 seconds after the connection is established it will be successful pretty much every time. Also, if I issue an ipconfig /flushdns, after its connected, it will work after that. It might sound like a minor problem, but as far as I' m concerned it should just work. I might be totally off base with my troubleshooting, but has anyone seen this before? I don' t understand why it only seems to have showed up after we turned on split tunnelling and why it seems to need some time after it says ' connected' for it to actually work. Thanks in advance for any input.
If it didn' t clear the cache, it wouldn' t work virtually at all for addresses that had been resolved prior to connecting... in the special case when the two alternative DNS resolve the same hostname to different IP addresses. For you, this is common; for the majority of users it is not and they won' t ever notice the switch over. I' ve strung up this to check the DNS cache:
>ipconfig /displaydns|findstr /C:" Record Name" |findstr /N " :"Two thoughts: - DNS caching lifetime does not really matter here - the perceived delay at tunnel-up might well be caused by Windows and the inner workings of it' s TCP/IP stack. As such, hard to influence from your side.
Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2023 Fortinet, Inc. All Rights Reserved.