Skip to content

Instantly share code, notes, and snippets.

@Pushergene
Pushergene / oDOH Proxy.
Last active January 31, 2022 15:10
I now operate oDOH Server.
Hello,
I am now operating a oDOH Proxy and Server. the Proxy is https://odoh.rujbin.xyz/proxy
Server is https://odoh.rujbin.xyz/dns-query.
I am using dnsproxy as backend, which blocks Tracking and Advertising. The frontend which resolves DNS, is 1.1.1.1. You can use Surf.nl https://odoh1.surfdomeinen.nl/proxy
as proxy. on DNSCrypt.info you can find more targets and proxies.
oDOH is running with https://github.com/cloudflare/odoh-server-go in background.
#!/bin/bash
wget https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/20200811T132729Z/stage3-amd64-systemd-20200811T132729Z.tar.xz
require 'resolv'
require 'json'
$address
puts "Address: #{$address}"
$address = gets.chomp
Resolv::DNS.open do |dns|
ress = dns.getresources "#{$address}", Resolv::DNS::Resource::IN::A
p ress.map { |r| r.address }
target = "http://ipinfo.io/#{$address}/json"
puts " Hostname: " + JSON['hostname']
for letter in 'Python': # First Example
if letter == 'h':
continue
print 'Current Letter :', letter
var = 10 # Second Example
while var > 0:
print 'Current variable value :', var
var = var -1
if var == 5: