Blind hacker's DNS tunneling approach

for those times when everything else is blocked...

The main goal

Here is the blind hacker's DNS tunneling approach. Useful when you can access really nothing but dig (or nslookup) and a Perl runtime, not even root-level permission. And you need to set up a tunnel to the Internet.

Yes, you don't have any USB key with some bootable OS inside either. Nor any electronic device that could help you install anything locally to bootstrap and do your job. Simply because when you entered the room, you had to walk through a metal detector.

No problem! You can bootstrap a full VPN client and get an Internet access only with dig and a core Perl installation. Anywhere and whenever you need it. For free. Here are the steps.

1- Check DNS availability

Ping some public host on the Internet. If no answer comes, but a public address is displayed (not in the private ranges of RFC 1918), the DNS goes out and you can probably establish a DNS tunnel:

$ ping vpnoverdns.com
PING vpnoverdns.com (89.167.66.209): 56 data bytes
^C
--- vpnoverdns.com ping statistics ---
12 packets transmitted, 0 packets received, 100.0% packet loss

Here, the test is negative (you cannot establish a tunnel):

$ ping vpnoverdns.com
ping: cannot resolve vpnoverdns.com: Unknown host

2- Get the instructions

You do not need to remember anything: the instructions are in the vpnoverdns.com zone. Ask for the TXT records of the domain:

$ dig vpnoverdns.com txt +short
"get TXT record type for bootstrap.vpnoverdns.com to get instructions to download the Perl VPN client"
"get TXT record type for sha256.vpnoverdns.com to get fingerprints"
...
$ dig bootstrap.vpnoverdns.com txt +short
sh.vpnoverdns.com.
"dig perl.vpnoverdns.com. txt +short | tr '\\' ' ' | xargs sh -c # works with bash, dash, zsh (sh syntax);
perl3.vpnoverdns.com for the protocol v3 client; see TXT value for dig.vpnoverdns.com if you do not have dig but nslookup only"

3- Download the client through the DNS

The protocol v3 client is stored, base64-encoded, in more than a thousand TXT records. One command line fetches them all, rebuilds vpnoverdns3.pl and runs it:

$ dig perl3.vpnoverdns.com. txt +short | tr '\\' ' ' | xargs sh -c

Under the hood, it runs this loop (the count may change with new versions):

i=0; while [ $i -lt 1219 ]; do dig $i.v3.src.vpnoverdns.com. TXT +short; i=$((i+1)); done \
  | sed -e s/.// -e 's/.$//' | perl -MMIME::Base64 -ne 'print decode_base64($_);' > vpnoverdns3.pl

Without dig, dig.vpnoverdns.com gives the same with nslookup. It takes a few minutes: each query is answered by our name servers, through your resolver.

4- Check the fingerprint

Compare the SHA-256 checksum of what you got with the one published in the DNS (and on the Download page):

$ dig sha256.vpnoverdns.com txt +short
"sha256 vpnoverdns3.pl: 5ffff80a0731866487a023c2bd9c5b7c751acb512b298847d32b4ef1dc93c5f5"
...
$ shasum -a 256 vpnoverdns3.pl

5- Open your tunnel

Anonymously, to the SSH server of your choice:

$ perl vpnoverdns3.pl -A -S my.ssh.server -o "-l user"

Or forward a local port and use your own ssh, with a SOCKS proxy for anything else:

$ perl vpnoverdns3.pl -A -L 2222:my.ssh.server:22 &
$ ssh -p 2222 -D 1080 user@127.0.0.1

You are on the Internet. See the manual for all the options, and the Unix/Linux page.

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.