summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authord3v11 <d3v11@d3v11.ano>2011-09-19 20:16:17 -0500
committerd3v11 <d3v11@d3v11.ano>2011-09-19 20:16:17 -0500
commit41f2cb1a2dfa1d2542593cff8fb1075849458564 (patch)
treee2b7bc0a512f706411e7efe7762afa432cb3ac9e /contrib
parent65dc50fe32f3c4d6db0bd9ba0af4e075b56b9f9e (diff)
downloadresdb-41f2cb1a2dfa1d2542593cff8fb1075849458564.tar.gz
resdb-41f2cb1a2dfa1d2542593cff8fb1075849458564.zip
added tor2dns to resdb in contrib
Diffstat (limited to 'contrib')
-rw-r--r--contrib/tor2dns/tor2dns/README34
-rwxr-xr-xcontrib/tor2dns/tor2dns/run13
-rwxr-xr-xcontrib/tor2dns/tor2dns/serve9
-rw-r--r--contrib/tor2dns/tor2dns/wimi.com1
4 files changed, 57 insertions, 0 deletions
diff --git a/contrib/tor2dns/tor2dns/README b/contrib/tor2dns/tor2dns/README
new file mode 100644
index 0000000..75a1ebe
--- /dev/null
+++ b/contrib/tor2dns/tor2dns/README
@@ -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 --git a/contrib/tor2dns/tor2dns/run b/contrib/tor2dns/tor2dns/run
new file mode 100755
index 0000000..087f7aa
--- /dev/null
+++ b/contrib/tor2dns/tor2dns/run
@@ -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 --git a/contrib/tor2dns/tor2dns/serve b/contrib/tor2dns/tor2dns/serve
new file mode 100755
index 0000000..0274b74
--- /dev/null
+++ b/contrib/tor2dns/tor2dns/serve
@@ -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 --git a/contrib/tor2dns/tor2dns/wimi.com b/contrib/tor2dns/tor2dns/wimi.com
new file mode 100644
index 0000000..5aae0b9
--- /dev/null
+++ b/contrib/tor2dns/tor2dns/wimi.com
@@ -0,0 +1 @@
+http://automation.whatismyip.com/n09230945.asp