A gem to which detects where a website is hosted

Would people be interested in this?

While developing a web service of mine, I thought it would be cool to detect where the user’s website is hosted and to use the matching icon instead of a generic "external url" one.

So I started developing it using both regexes and DNS queries. So far I have it implemented for both Neocities and Github pages but it could be extended to literally everything.

An example,

p which_host("example.com")
# :heroku

If you are interested in this, I could start working on a gem separate from my initial project and release it on Rubygems.

If someone had an idea of a (descriptive) name I’d gladly take it.

···

Sent via Migadu.com, world's easiest email hosting