Today I was trying out setting up subdomains in a Rails app. But the localhost does’t support subdomains, like something.localhost. I was left with an option of modifying “hosts” file on my machine and point to any domain/subdomain I wanted. But, hosts file doesn’t support wildcard subdomains like *.something.com. Means I have to define every subdomain I want to use! Then I found this domain which points at 127.0.0.1 a.k.a localhost! And the domain has wildcard subdomain pointing at localhost too! So I could use any subdomain on the fly!! Very useful if you are working on projects which has subdomains.

Tags: dev-tips