# HG changeset patch # User d3v11 # Date 1316481377 18000 # Node ID cf5e211d7711b1fd426050413ea4eb93503d09a6 # Parent 2e337ecdfacd82079c58bf17a2a848dabf259869 added tor2dns to resdb in contrib diff -r 2e337ecdfacd -r cf5e211d7711 contrib/tor2dns/tor2dns/README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/tor2dns/tor2dns/README Mon Sep 19 20:16:17 2011 -0500 @@ -0,0 +1,34 @@ +DESCRIPTION: + tor2dns is a quick solution to non-free + and centralized dns. + +DEPENDS: + tor, daemontools, python + +INSTALL: + +mkdir /var/lib/tor/tor2dns +echo 'HiddenServiceDir /var/lib/tor/tor2dns' >> /etc/tor/torrc +echo 'HiddenServicePort 8053 127.0.0.1:8053' >> /etc/tor/torrc + +#See note below, you may need to use the commented line. +#chown debian-tor /var/lib/tor/tor2dns + +/etc/init.d/tor restart +mkdir /services/tor2dns +tar -xvf tor2dns.tar.gz --directory='/services' +cd / +ln -s /services/tor2dns /service +echo 'new dns link >>> http://'`cat /var/lib/tor/tor2dns/hostname` + +POST INSTALL: + You will want to make sure port fowarding is turned on, on + port 8053 of your router, you may also need to adjust your + firewall. you can test for success by opening your browser + with tor enabled and going to the link given @ the end of + your installation. :-) enjoy. + +NOTE: + On some systems /var/lib/tor/tor2dns will need a special owner + like "debian-tor". If tor2dns fails for you please troubleshoot + your logs, port fowarding, etc. diff -r 2e337ecdfacd -r cf5e211d7711 contrib/tor2dns/tor2dns/run --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/tor2dns/tor2dns/run Mon Sep 19 20:16:17 2011 -0500 @@ -0,0 +1,13 @@ +#!/bin/bash +GETIP() { + while true; do + wget `cat ../wimi.com` -O index.html + sleep 5m + done + } + +[ -e SHARE ] || mkdir SHARE +cd SHARE +../serve & +GETIP + diff -r 2e337ecdfacd -r cf5e211d7711 contrib/tor2dns/tor2dns/serve --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/tor2dns/tor2dns/serve Mon Sep 19 20:16:17 2011 -0500 @@ -0,0 +1,9 @@ +#!/usr/bin/python +import SimpleHTTPServer +import SocketServer + +PORT = 8053 + +Handler = SimpleHTTPServer.SimpleHTTPRequestHandler +httpd = SocketServer.TCPServer(("", PORT), Handler) +httpd.serve_forever() diff -r 2e337ecdfacd -r cf5e211d7711 contrib/tor2dns/tor2dns/wimi.com --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/tor2dns/tor2dns/wimi.com Mon Sep 19 20:16:17 2011 -0500 @@ -0,0 +1,1 @@ +http://automation.whatismyip.com/n09230945.asp