You want to use TCP over a DNS tunnel ? Have a look to this good article on http://analogbit.com/tcp-over-dns_howto