Home / Guides / DNS on public Wi-Fi

DNS protection on public Wi-Fi.

Café, hotel and airport Wi-Fi hands your laptop that network's DNS. Your office filtering stops at the office door, unless you take it with you.

Remote work · Updated October 17, 2026 · 6 min read

In shortThere are two ways to keep DNS filtering on off-network. Encrypted DNS per device (DoH or DoT) is light and filters lookups only. A VPN carries all traffic and encrypts everything on untrusted Wi-Fi, at the cost of a bit more setup and an app to switch on. Pick per person, not per company.

What can go wrong on public Wi-Fi

Public Wi-Fi is safer than it used to be. Most websites and apps now encrypt their traffic, so other people on the network can't read your passwords or emails. But a few problems remain, and most of them involve DNS:

Network-level filtering, set on your router or firewall, can't help here: the laptop isn't behind your router. Protection has to travel with the device.

Option 1: encrypted DNS on each device

DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT) send DNS lookups encrypted to a server you choose, instead of to the local network's DNS. If that server is your filtering provider, the device keeps your policy on any network: home, hotel, café or mobile data.

The key detail is a per-device address. At the office, a filter recognises your network by its public IP. On hotel Wi-Fi the IP is the hotel's, so the device needs its own address that tells the filter which policy to apply. Most providers, DNSAFE included, give each device a personal DoH URL or DoT hostname.

How to set it up

Encrypted DNS is light. There's no app running and no noticeable effect on speed. But it only covers lookups. Everything else still travels over the café's network as normal, protected by each website's own encryption. And a user with admin rights on the device can switch it off.

Captive portal tip: if a hotel or airport sign-in page doesn't appear, try opening any plain website to trigger it. If it still won't load, switch encrypted DNS (or the VPN) off, sign in to the Wi-Fi, then switch it straight back on.

Option 2: a VPN with filtering

A VPN sends all of the device's traffic through an encrypted tunnel to a server elsewhere. The local network sees only scrambled data going to one address. If the VPN's DNS is your filtering provider, your policy applies too.

This is the better fit when the whole connection should be protected, not just the lookups: staff who work from hotels and airports every week, people handling sensitive data, or anyone who regularly joins networks they don't trust. The trade-offs: there's an app to install and switch on, traffic goes the long way round through the VPN server, and websites see the server's location rather than yours.

A VPN is also the most common way devices bypass DNS filtering. If staff use personal VPNs, your filter can't see their lookups. See how to stop DNS filtering bypass.

How to choose, per person

WhoGood fit
Mostly in the office, occasionally at homeEncrypted DNS on the laptop. Set it once and forget it.
Phones and tabletsEncrypted DNS (profile or Private DNS). Covers mobile data too.
Frequent travelers, hotel and airport Wi-FiA VPN with filtering, ideally with encrypted DNS as well for when it's off.
People handling sensitive data on the roadA VPN with filtering.

Many organizations use both: encrypted DNS as the default, and a VPN for the people who need it.

Protect laptops anywhere.

Start free

How DNSAFE does both

Roaming devices (encrypted DNS)

On business and MSP plans, open the network in the portal and use Roaming devices → Add device. Each laptop or phone gets its own DoH address and DoT name, and DNSAFE recognises it by that ID on any network, with your network's rules and logs. The portal shows the steps for each device type: a profile link for iPhone, iPad and Mac, Private DNS for Android, and the DoH setting for Windows 11 and Chromebook. There's no agent to install. Each roaming device counts as one IP on your plan, and if a device is lost you can reset its setup so the old address stops working. Details: DoH and DoT in the docs.

On Home plans, go to Devices → Add a phone, tablet or laptop at my.dnsafe.net. See the Home guide.

Secure Wi-Fi (VPN)

Secure Wi-Fi is a WireGuard VPN built for untrusted networks, with your DNSAFE filtering on. It uses the free WireGuard app, so there's nothing of ours to install.

To invite someone, open the network, choose the Secure Wi-Fi tab and send a setup link. See Secure Wi-Fi in the docs.

To check a device is protected wherever it is, run the DNS leak test.

Frequently asked questions

Is public Wi-Fi safe to use for work?

Usually, for everyday tasks. Most sites and apps encrypt their traffic, so others on the network can't read it. The gaps are DNS: lookups go to a server you don't control, unencrypted and unfiltered. Encrypted DNS to your filtering provider, or a VPN with filtering, closes them.

Do I need a VPN if I already use encrypted DNS?

Not always. Encrypted DNS keeps your filtering on and hides your lookups from the local network. A VPN also encrypts everything else and hides which servers you connect to. For frequent travelers or sensitive work, use both.

Why does the hotel sign-in page not appear?

Captive portals intercept traffic until you accept their terms, and encrypted DNS or a VPN can get in the way. Try opening a plain website first. If that fails, switch encrypted DNS or the VPN off, sign in, then switch it back on.

Sources

Keep protection on wherever people work.

Roaming devices and Secure Wi-Fi keep your DNSAFE policy on outside the office. 14 days free, no card.