Skip to content

Instantly share code, notes, and snippets.

@denysonique
Created April 10, 2011 09:36
Show Gist options
  • Save denysonique/912187 to your computer and use it in GitHub Desktop.
Save denysonique/912187 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'rubydns'
require 'uri'
require 'net/http'
RubyDNS::run_server do
match(/.*/, :TXT) do |data, transaction|
puts "http://#{data}"
r = Net::HTTP.get_response(URI.parse("http://#{data}"))
transaction.respond!(r.body)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment