News for hackers. Stuff that matters.
Re:Give HN: *.til.io resolves to 127.0.0.1 by tootie on Friday November 21, 2014 @02:32PM (#8642895)
How does this work? Isn't 127.0.0.1 a loopback? How does it get to the internet?
Re:Give HN: *.til.io resolves to 127.0.0.1 by astrodust on Friday November 21, 2014 @02:39PM (#8642949)
The point is it doesn't go to the internet, it just sets up an alias to your local machine.

This is useful when you want to have several different virtual hosts on your machine, all of which would otherwise be called "localhost".

Re:Give HN: *.til.io resolves to 127.0.0.1 by extc on Friday November 21, 2014 @08:07PM (#8644290)
It does go to the Internet, for the DNS query. This won't work offline.
Re:Give HN: *.til.io resolves to 127.0.0.1 by sp332 on Friday November 21, 2014 @02:37PM (#8642933)
Your browser asks the DNS server for the IP address corresponding to the domain name. If you ask for google.com it will reply e.g. 74.125.228.228 and then your browser will connect to 74.125.228.228 directly. When your browser asks that same DNS server for til.io's IP address, it gets 127.0.0.1, and then your browser connects to 127.0.0.1!