1

UniFi Cloud Gateway Ultra - Let NextDNS overwrite VPN Client DNS?

Hey everyone,

 

I am using a wireguard VPN client on my UCG Ultra. Together with this I am running the NextDNS CLI. 
My intention was to have the VPN running for privacy & let NextDNS filter everything.

I can’t seem to figure out how to get NextDNS to overwrite the DNS provided by the VPN. Was hoping I could get some help here •ᴗ• 

 

Thanks for your time in advance!

9 replies

null
    • John.60
    • 2 mths ago
    • Reported - view

    Did you ever find a solution to this? I have the exact same issue - with no VPN NextDNS CLI works perfectly but as soon as a VPN client is configured I loose NextDNS. I tried updating the DNS settings in the Wireguard config but that made no difference. I also tried removing the DNS settings completely from the Wireguard config but the Unifi interface fails to validate the Wireguard config in this case. Would love to get these working together.

      • Blobbie
      • 2 mths ago
      • Reported - view

       Sadly not. Ended up just getting a vpn with adblock build-in.

       

      Not the ideal situation, but couldn’t figure out another way.

    • zD0_nX_oRQD_UQO
    • 2 mths ago
    • Reported - view

    It looks like there is a hardcoded DNS, below is a snippet from udapi json file.

    See here for more explanation on the udapi server and json file.

     "vpn/wireguard/clients": [
      {
       "dnsServers": [
        "8.8.8.8"
       ],
    
    • okcprime
    • 1 mth ago
    • Reported - view

    wirrguaed allowes to include custom dns replace the DNS that pre configured with DNS IP V4/V6 of Nextdns as shown in my.nextdns.io and allow ddns client to link your IP .

    • Syko
    • 1 mth ago
    • Reported - view

    Replace the dns in the wireguard config before you upload the file to UniFi . Make sure you use the correct next loud address so it reflects in Nexdns

    • John.60
    • 1 mth ago
    • Reported - view

    To clarify, I have replace the DNS config in the wireguard config file before uploading to Unifi. No matter what DNS settings I put in this file, they are ignored and whenever the VPN connection is active the DNS will revert to the VPN providers own default DNS servers. 

      • Syko
      • 1 mth ago
      • Reported - view

       this can’t be the case, if you are setting up a vpn client on the ucg, open the wireguard config file that you got from your vpn provider, remove the dns numbers and replace with the nextdns one. If you have this wrong you won’t be connecting anywhere. 
      the device your are testing this with, do you happen to have a dns config already on it?

    • Syko
    • 1 mth ago
    • Reported - view

    Let’s think about this, are you setting up a vpn client for the ucg to connect to? Or are you setting up a wireguard vpn server on ucg for your phone to connect to. 
    two very different things 

    • okcprime
    • 1 mth ago
    • Reported - view

    Two Scenerios 

     

    VPN on Device directly

    VPN on connected shared Device 

     

    if first than just by configuring your VPN wireguard config file DNS will solve it . 

     

    if You wanted to Share The VPN with lot more other device inside the network than you have to create a Proxy . 

     

    Read Any documents where You can find Proxy to share internet through single user VPN connection 

Content aside

  • 1 Likes
  • 1 mth agoLast active
  • 9Replies
  • 393Views
  • 5 Following