Skip to content

Instantly share code, notes, and snippets.

View superchell's full-sized avatar
🏋️‍♂️
Work hard

Oleg Mozolev superchell

🏋️‍♂️
Work hard
View GitHub Profile
@johnthethird
johnthethird / customdomain.rb
Created September 23, 2011 22:23 — forked from dwabnitz/customdomain.rb
rack middleware to resolve a custom domain to an original subdomain in a multi-tenant application
require 'net/dns/resolver'
# Custom Domain
#
# Require net-dns gem
#
# A Rack middleware to to resolve the custom domain to original subdomain
# for your multi telent application.
#
# It's all transperant to your application, it performs cname lookup and