Re:Give HN: *.til.io resolves to 127.0.0.1
by skrause on Friday November 21, 2014 @02:24PM
(#8642845)
Also http://nip.io/
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
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.
> 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.