News for hackers. Stuff that matters.
Re:Give HN: *.til.io resolves to 127.0.0.1 by slig on Friday November 21, 2014 @02:19PM (#8642806)
See also: http://xip.io/

> xip.io is a magic domain name that provides wildcard DNS for any IP address

So you can test stuff on your phone/tablet without messing with 'hosts' file, for instance: myapp.192.168.0.1.xip.io will resolve to 192.168.0.1.

Re:Give HN: *.til.io resolves to 127.0.0.1 by skrause on Friday November 21, 2014 @02:24PM (#8642845)
Re:Give HN: *.til.io resolves to 127.0.0.1 by jtolj on Friday November 21, 2014 @02:29PM (#8642878)
Both of these are really useful, but a lot to type if you just need 127.0.0.1.
Re:Give HN: *.til.io resolves to 127.0.0.1 by general_failure on Friday November 21, 2014 @02:34PM (#8642910)
How does this work? How do you make multilevel subdomain wildcards work? Maybe they run their own DNS server in which case this seems atleast doable.

edit: It's smack on the front page of xip.io :) "xip.io runs a custom DNS server on the public Internet.".

Re:Give HN: *.til.io resolves to 127.0.0.1 by unfamiliar on Friday November 21, 2014 @02:35PM (#8642917)
That seems like more of a mess than just "messing with the hosts file." What happens when your ip changes and none of your links work correctly?
Re:Give HN: *.til.io resolves to 127.0.0.1 by tomjakubowski on Friday November 21, 2014 @02:44PM (#8642980)
It is generally more difficult to edit a hosts file on a phone or tablet or on your non-technical coworker's computer. xip.io is useful for these situations.

And if your IP address changes, surely it is more of a pain to edit the hosts file again on these several other phones/tablets/computers than to just send a new link.

Re:Give HN: *.til.io resolves to 127.0.0.1 by unfamiliar on Sunday November 23, 2014 @03:16PM (#8649775)
>And if your IP address changes, surely it is more of a pain to edit the hosts file again

You wouldn't need to edit the hosts file, since your made up domain would just point to 127.0.0.1

Re:Give HN: *.til.io resolves to 127.0.0.1 by slig on Friday November 21, 2014 @02:45PM (#8642986)
This hack is for development only i.e, testing something on your phone that is hosted on your dev machine, all inside your local network.
Re:Give HN: *.til.io resolves to 127.0.0.1 by 0942v8653 on Friday November 21, 2014 @02:50PM (#8643027)
This looks like it will be really useful. My school blocks direct IP access ("phishing", but it's really because they use DNS blocking).
Re:Give HN: *.til.io resolves to 127.0.0.1 by astrodust on Friday November 21, 2014 @02:29PM (#8642877)
xip.io is great for testing on virtual machines so you can use the unusual private interface address of your host, or of the virtual machine itself.