The Technology

DNS tunneling is simply encapsulating data in DNS queries and answers, to let two parties communicate across a network of DNS resolvers and servers. VPN-over-DNS does not tunnel IP datagrams: it carries TCP streams directly. Your application (an SSH client, most of the time) talks to a local port; the client cuts the stream into DNS queries, our server rebuilds it and opens the TCP connection to the destination. Fewer layers, more throughput.

Protocol v3

The 2012 protocol used five kinds of queries per message (book, write, poll, read, acknowledge) and carried about 6 KB/s. Protocol v3, introduced in 2026, carries data in both directions in every query:

  • Upstream, data goes in the query name, base32-encoded (case-insensitive, so it survives resolvers that randomize the case of names): <data>.<header>.v3.tun.vpnoverdns.com.
  • Downstream, data comes back in TXT records (raw bytes or base64), AAAA records (16 bytes each) or A records (4 bytes each): the client probes what the resolver lets through and the largest message size that works.
  • A reliable transport numbers the packets, keeps a sliding window of queries in flight and acknowledges what arrived: resolvers repeat, reorder, lose and cache queries, and send them from several addresses.
  • Over this transport, a multiplexing layer carries many TCP streams at once (OPEN, DATA, FIN, RST frames): several terminals and tunnels share one DNS session.
  • The session starts with a probe, then an authentication by token (HMAC-SHA256: the secret never travels) or an anonymous opening.

The protocol was designed so that a client can be written in Perl with the core modules only: no TLS, no DNS library, the client builds its own packets. That is how vpnoverdns3.pl runs on any Unix and can be downloaded through the DNS itself. The full specification is in docs/protocol-v3.md on GitHub.

Throughput

Measured in November 2026 with the Perl client (1 MB downloaded, 512 KB uploaded):

PathDownstreamUpstream
Straight to the server, without resolver5.7 MB/s556 KB/s
Through the resolver of the hosting provider263 KB/s—
Through Google Public DNS (8.8.8.8)116 to 185 KB/s210 KB/s
Through Cloudflare (1.1.1.1)20 to 32 KB/s13 KB/s
Protocol v2 (2012), for comparisonabout 6 KB/s2.4 KB/s

With DNS tunneling, the round-trip time to the resolver and the policy of the resolver (rate limits, message size, record types) make the speed. The applications measure the resolvers for you and keep at most 400 queries per second, above which public resolvers throttle our server.

Security model

  • The tunnel is not encrypted: confidentiality is the job of SSH, end to end, as on any untrusted network.
  • The token is never sent: sessions are authenticated with HMAC-SHA256 keys derived from it, and a third party who reads the queries cannot hijack a session.
  • The server only opens connections to public Internet addresses, on the ports allowed for the account (port 22 for anonymous users): never to private networks, loopback or its own addresses. Private machines are reached by the clients themselves, inside SSH (ProxyJump).
  • The SSH clients of the applications check host keys (trust on first use) and keep passwords, passphrases and tokens in the keychain of the system.

The software

Server
A standalone Java 21 application: authoritative DNS server for vpnoverdns.com (UDP and TCP, IPv4 and IPv6), tunnel endpoint for protocols v0 to v3, PostgreSQL for accounts and quotas. It replaced the 2012 Tomcat and Hibernate web application.
Core
A Rust library: probe, session, reliable transport, multiplexing, local ports. Used by the command line client and by both applications.
Applications
The desktop application (Flutter: Windows, macOS, Linux) and the native application (SwiftUI: iPhone, iPad, Mac), with their own SSH client (terminals, keys, forwarding, jump hosts).
Clients
The Perl client (core Perl 5.10+) and the Rust command line client.

Infrastructure

From 2012 to 2015, the tunnel endpoints were hosted at Amazon Web Services, then at OVH. Since 2026, the server runs in the Hetzner cloud, with a secondary name server at OVH (France). With DNS tunneling, a low round-trip time is a major contribution to speed: European resolvers get the best results.

Latest News

On 2nd December 2026

Version 3.1: native apps for iPhone, iPad and Mac A new native application (SwiftUI) joins the desktop application, and the direct SSH mode skips the DNS when the network is routed. See Download.

On 26th November 2026

Desktop application for Windows Built-in SSH terminals, permanent tunnels and a speedometer, portable: no installation needed.

November 2026

New server, protocol v3 The service is back, 10 to 30 times faster than before. Old clients still work.

On 31st July 2016

Server and clients are open-source: GPLv3 Explore the source tree on GitHub.