---
title: 'Tutorial: Use CloudConnexa to Secure DNS Traffic'
canonical: https://openvpn.net/cloud-docs/tutorials/use-case-tutorials/internet-security/tutorial--use-cloudconnexa-to-secure-dns-traffic/
product: CloudConnexa Docs
description: Learn how CloudConnexa secures DNS traffic by routing encrypted DNS queries through the WPC tunnel, bypassing rogue DNS servers and DNS hijacking attacks — with verification steps using nslookup to confirm DNS protection is active.
keywords: DNS security
---

# Tutorial: Use CloudConnexa to Secure DNS Traffic

## Overview

Use CloudConnexa to protect DNS traffic when users connect from trusted or untrusted networks, including public Wi-Fi and public hotspots.

When a device connects to CloudConnexa, its DNS queries travel through the encrypted WPC tunnel and are resolved through CloudConnexa instead of the local network's DNS server. This DNS encryption helps protect users from DNS hijacking and rogue DNS servers.

This tutorial shows you how to:

- Connect a device to CloudConnexa.
- Use `nslookup` to verify that DNS resolves through CloudConnexa.
- Add users and connect their devices.

This protection is useful for remote users accessing corporate resources, SaaS applications, and other internet services from networks your organization doesn't control.

For information about configuring DNS for your WPC, refer to [About DNS Settings](https://openvpn.net/cloud-docs/owner/settings/settings---dns/about-dns-settings.md).

## How CloudConnexa protects against DNS hijacking

DNS hijacking, also called DNS poisoning or DNS redirection, manipulates DNS resolution so a domain resolves to an unintended destination.

For example, a compromised public Wi-Fi network can direct a device to a rogue DNS server. The attacker can then return a fraudulent IP address for a legitimate domain, potentially redirecting users to phishing or pharming sites.

The figure shows that a compromised public hotspot can redirect DNS queries to a rogue DNS server.

When connected to CloudConnexa, the device sends its DNS queries through the encrypted WPC tunnel for resolution. The local public Wi-Fi network doesn't resolve those queries.

The figure below shows CloudConnexa sending DNS queries through the encrypted WPC tunnel, bypassing the local network's DNS servers.

> **Tip**
>
> **Want to filter DNS traffic too?**
>
> Secure DNS resolution protects DNS traffic in transit. Cyber Shield Domain Filtering provides an additional layer of protection by monitoring or blocking domains based on content categories and domain lists.
>
> With **Shield Policies**, you can apply different Domain Filtering protection to different User Groups. Refer to [About Cyber Shield](https://openvpn.net/cloud-docs/owner/shield/about-cyber-shield.md) or [Tutorial: Secure DNS Traffic and Use DNS-Based Content Filtering](https://openvpn.net/cloud-docs/tutorials/use-case-tutorials/internet-security/tutorial--secure-dns-traffic-and-use-dns-based-content-filtering.md).

## Before you begin

Before starting this tutorial:

- [Create a CloudConnexa account](https://openvpn.net/cloud-docs/owner/get-started/create-a-cloudconnexa-account.md).
- Install OpenVPN Connect on a test device.
- Import a CloudConnexa connection profile.

## Step 1: Connect to CloudConnexa

1. Launch OpenVPN Connect.
2. Connect using your CloudConnexa connection profile.
3. Verify that OpenVPN Connect displays **Connected**.

## Step 2: Verify DNS resolution through CloudConnexa

Use `nslookup` to verify that your device is using CloudConnexa for DNS resolution.

1. While connected to CloudConnexa, open a command prompt or terminal.
2. Run an `nslookup` command for a domain. For example:

   ```
   nslookup openvpn.net
   ```
3. Review the DNS server **address** in the response.
   - When DNS resolves through CloudConnexa, the DNS server address is within the `100.96.0.0/11` range. For example:

     ```
     Server:  UnKnown
     Address:  100.96.2.65
     ```

     > **Tip**
     >
     > `Server` may display `UnKnown` if the DNS server IP address doesn't resolve to a hostname. This doesn't indicate a DNS resolution problem.

   > **Note**
   >
   > The specific DNS server IP can vary. Verify that the address belongs to `100.96.0.0/11` rather than looking for a specific IP address.

## Step 3: Add and connect your users

After verifying DNS resolution, add the users whose devices should connect to CloudConnexa.

1. Sign in to your WPC's Administration Portal at your **Cloud ID** address (for example, `yourcompany.openvpn.com`).
2. Navigate to **Users → Users**.
3. Select **Add User**.
4. Enter the user information and select a **Primary User Group**.
5. Select **Add User**.

   > **Note**
   >
   > To send an invitation email with onboarding instructions to the user, select that option during User creation and provide the email address.

For the complete procedure, refer to [Add a User](https://openvpn.net/cloud-docs/owner/users/users---users/add-a-user.md).

After users connect with OpenVPN Connect, their DNS queries are sent through the encrypted WPC tunnel for resolution through CloudConnexa.

## What happens next

CloudConnexa now provides secure DNS resolution for connected users, including when they connect from untrusted networks such as public Wi-Fi.

To add DNS-based threat and content protection, configure Cyber Shield Domain Filtering. Shield Policies let you apply different filtering protection to different User Groups.

Continue with [Tutorial: Secure DNS Traffic and Use DNS-Based Content Filtering](https://openvpn.net/cloud-docs/tutorials/use-case-tutorials/internet-security/tutorial--secure-dns-traffic-and-use-dns-based-content-filtering.md).

## Related resources

- [About DNS Settings](https://openvpn.net/cloud-docs/owner/settings/settings---dns/about-dns-settings.md)
- [About Cyber Shield](https://openvpn.net/cloud-docs/owner/shield/about-cyber-shield.md)
- [Tutorial: Secure DNS Traffic and Use DNS-Based Content Filtering](https://openvpn.net/cloud-docs/tutorials/use-case-tutorials/internet-security/tutorial--secure-dns-traffic-and-use-dns-based-content-filtering.md)

---

Prev: [Tutorial: Learn About the Levels of Security Afforded by the Use of Various Internet Access Options](https://openvpn.net/cloud-docs/tutorials/use-case-tutorials/internet-security/tutorial--learn-about-the-levels-of-security-afforded-by-the-use-of-various-internet-access-options.md)
Next: [Tutorial: Secure DNS Traffic and Use DNS-Based Content Filtering](https://openvpn.net/cloud-docs/tutorials/use-case-tutorials/internet-security/tutorial--secure-dns-traffic-and-use-dns-based-content-filtering.md)
Index: https://openvpn.net/cloud-docs/llms.txt
