DNS tunneling with Java

Artem Smotrakov
5 min readAug 29, 2016

DNS tunneling may help you to bypass a firewall if DNS requests are allowed. Or, it can just get you a free Wi-Fi. There are a number standalone tools which allow you to setup a TCP-over-DNS tunnel. Here is a simple implementation of DNS tunneling with pure Java. It’s not ready for using in real world, but it shows an idea how DNS tunneling can be implemented. The implementation works with standard JRE, and doesn’t require any additional library.

What is DNS tunneling?

The purpose of DNS (Domain Name System) protocol is to convert a domain name to…

--

--