r/UNIFI•
Catsrules

Unifi IPSec not using the assigned DNS server.

Help!

So I am running into a very interesting issue. (I am guessing very uncommon)

I am setting up IPSec between two locations. The remote location has a Dynamic IP, requiring me to use Hostnames first direct ip addresses.

However according to the logs, IPSec is resolving to the wrong ip address for the provided hostname.

When I ping the remote location hostname from the Unifi console it resolves to the correct ip address. As does everywhere else I try.

When I go to the IP that is wrongly being resolved in my browser is goes to "setup your Xfinity activate mobile internet". I think it is going to some captive portal (Thanks to my wonderful ISP Comcast.)

I remember having this issue years ago, my fix was to just manually change my ISP assigned DNS settings to Cloud flare/google on the router and all was well. But I am already doing that on my Unifi router. It is almost like the IPSec is ignoring the DNS settings and using some dhcp provided comcast DNS server.

Anyone run into this before? Any way to force IPSec to use different dns server?

Posted Jul 6, 2025, 7:25 PM UTC

24
Loading comments…