Multiple domains

I am proposing to have multiple domain name pointing towards a single site.

On the site I would like to display the domains name that was used.

How can I obtain the name of the domain that the user entered to access my site?

Thanks in advance…

http://api.rubyonrails.org/classes/ActionDispatch/Request.html#method-i-original_url

# get "/articles?page=2"
request.original_url # => "http://www.example.com/articles?page=2"

Hi,