DNS to SOCKS or HTTP proxy

4.0 Stars (4)
30 Downloads (This Week)
Last Update:
Download SourceCode.zip
Browse All Files
Windows Mac Linux



This is a command line utility to resolve DNS requests via a SOCKS tunnel like Tor or a HTTP proxy.



  • Provides anonymous DNS for any Windows application in combination with Tor
  • This way you can force Opera or Internet Explorer (examples) to use Tor for all communication
  • Can also be compiled and used on Linux or other *nix variants (also Mac OS X)


Other Useful Business Software

Powerful Service Desk and Simple to Use ITSM Solution Icon

One IT support system that centralizes all your requirements – service desk/ITSM software: incident, remote desktop, reporting, ITAM & more.

Powerful Service Desk and Simple to Use ITSM Solution Icon
With over 15 years’ experience in the IT field, SysAid serves over 100K admins globally. Our unique help desk/ITSM solution is built to serve all your IT needs. SysAid provides one centralized system for: information, actions, communication, reporting, support, knowledge & more. Our easy to use ticketing system facilitates over 82M tickets a year, supporting over 2000 organizations in the US alone. We’ve been translated to more than 40 languages.
Does your company have more than 1,000 employees?
Do you plan to purchase Service Desk/ITSM software within the next 6 months?
One last question before you visit our site:

Is your annual budget for Service Desk/ITSM software greater than $8,000?

User Ratings

ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
Write a Review

User Reviews

  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    I compiled dns2socks on tomato base router, version 1.7 worked fine, but version 1.8 always failed: gcc -pthread -Wall -O2 -o dns2socks DNS2SOCKS.c [optware][asus:/tmp/mnt/sda2/compile/dns2socks]$ ./dns2socks /l:/var/log/dns2socks.log /q DNS2SOCKS V1.8 (free software, use parameter /? to display help) Invalid address '' and port '7777' specified for SOCKS server! I see the source: if(iRet) { //only for the DNS server also support name if(&g_sDnsSrvAddr==psAddr) { size_t uLen=strlen(szIpAndPort); if(uLen<256 && uLen) { ((struct sockaddr_in6*)&g_sDnsSrvAddr)->sin6_port=htons((uint16_t)atoi(szPort)); if(((struct sockaddr_in6*)&g_sDnsSrvAddr)->sin6_port) { g_sDnsSrvAddr.ss_family=AF_UNSPEC; //this marks usage of name *(char**)&((struct sockaddr_in6*)&g_sDnsSrvAddr)->sin6_addr=szIpAndPort; //use sin6_addr for pointer to name (128 bit -> large enough, alignment should also be fine) ((struct sockaddr_in6*)&g_sDnsSrvAddr)->sin6_flowinfo=(uint8_t)uLen; //use sin6_flowinfo for length return 1; //o.k. } } } OutputFatal("\nInvalid address '%s' and port '%s' specified for %s!\n", szIpAndPort, szPort, szParamName); return 0; //error } Are those means: if &g_sDnsSrvAddr!=psAddr, always return failed? Sorry i am a C language newbie.

    Posted 05/01/2015
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Not actively supported and not working out of the box. Getting the message "Server actively refused connection" (by which I think it's the TOR SOCK server that's refusing). Set-up as follows: Windows 8.1 (fully updated). Latest TOR bundle (up and running ok). Latest DNS2SOCKS (version matching TOR bundle). Having configured the NIC for preferred DNS, started the TOR bundle, started DNS2SOCKS, saw the requests listed in DNS2SOCKS console along with matching actively refused messages. It's unfortunate that DNS2SOCKS doesn't support IP6 - Yet?...

    Posted 12/16/2014
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    A very useful tool.

    Posted 01/05/2013
Read more reviews

Additional Project Details



Intended Audience

Advanced End Users, End Users/Desktop, Security Professionals

User Interface


Programming Language




Thanks for helping keep SourceForge clean.

Screenshot instructions:
Red Hat Linux   Ubuntu

Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Briefly describe the problem (required):

Upload screenshot of ad (required):
Select a file, or drag & drop file here.

Please provide the ad click URL, if possible:

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks