Live data from Hacker News

Smack a Ho.st - A localhost domain

tbaggery.com

1–10 of 19 posts

Re: Smack a Ho.st - A localhost domain

#4
The nice thing about this, for all of you people who understandably don't get it, is that setting up wildcard dns on OS X is a royal PITA. You can't just modify /etc/hosts, you have to http://www.macosxhints.com/article.php?story=200511022035208...

Given all rails developers use a Mac ;) this is useful.

Re: Smack a Ho.st - A localhost domain

#5
post #3

My /etc/hosts has: 127.0.0.1 me So I can do http://me/website-to-test/

But if you are developing a site that uses the subdomain as a routing rule, that fails. Your /etc/hosts entry won't make http://fuck.me/ go to your site, which is what smackaho.st will allow you to do.

Obviously this is easy enough to fake without DNS trickery; just modify the outgoing "Host:" header or teach your proxy how to "resolve" names in the form of "*.me".

Re: Smack a Ho.st - A localhost domain

#7
post #6

Do you need subdomains specificially, or just different addresses that resolve to localhost? If so you could use e.g http://127.1:3000/ , http://127.2:3000/ etc. (or the full 127.0.0.1 127.0.0.2 if your browser doesn't like 127.1).

Having subdomains is nice when you're developing an app that will use sudomains for accounts in production.

Re: Smack a Ho.st - A localhost domain

#8
Laboratory Evaluation, http://www.shoesgroups.com/reebokanswer-c-70.html, pump

technology can support the players affect the soles of the feet and legs friction weight, these href="wholesale" rel="nofollow">http://www.shoesgroups.com/reebokanswer-c-70.html>wholes... reebok answer shoes are the perfect combination of speed

and passion. This wholesale reebok answer shoe has launched an all-star red, black and the world, these two limited edition

colors. Series, as fans should not miss the fine, We are free shippmtand a week to your door.004

Re: Smack a Ho.st - A localhost domain

#9
Why is this specific to Rails?

The beauty of the web and of the internet protocols it's built on is that you can have multiple implementations that respond to the same interface. DNS doesn't care what language it's pointing to.

Re: Smack a Ho.st - A localhost domain

#10
post #9

Why is this specific to Rails? The beauty of the web and of the internet protocols it's built on is that you can have multiple implementations that respond to the same interface. DNS doesn't care what language it's pointing to.

It's not specific to Rails, only his example URL is - Rails listens on port 3000 by default. You could equally try http://iwishyouwouldnt.smackaho.st:80/ and get your local web server.
Post reply on HN