Live data from Hacker News

Xip.io - a magic domain name that provides wildcard DNS for any IP address

xip.io

21–30 of 128 posts

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#21

Earlier quoted context omitted.

To expand on this, this problem can usually be solved by editing /etc/hosts. But you can't do that on some platforms such as iOS. By the way, a neat trick is to assign an alias to your network interface in order to avoid the trouble of DHCP giving you a different IP address each time you connect. For example, on Mac OS X: $ sudo ifconfig en1 alias 10.99.99.99 netmask 255.0.0.0 This address will only be reachable from…

What is the difference between an alias and a static IP address? Also don't most routers attempt to give IPs back to the MAC that last had them?

An alias is an additional static ip.

And most routers try to minimize IP variations, but it's not perfect. Mine doesn't persist IPMAC associations when I reboot it.

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#22
post #3

I hope people trust 37signals.

Trust them with what? All you'd be telling 37signals with this is your development server's internal IP address and the names of any subdomains you might be using. No actual site traffic will go to them.

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#23

Earlier quoted context omitted.

What is the difference between an alias and a static IP address? Also don't most routers attempt to give IPs back to the MAC that last had them?

What is the difference between an alias and a static IP address? Not sure what you mean. If you're referring to the bit about binding MAC to an address, I should probably have said "fixed IP" rather than "static IP", sorry about that. Also don't most routers attempt to give IPs back to the MAC that last had them? I'm hopping between different networks (with different DHCP servers) quite a lot, maybe it's less useful…

Ah, no Wilya picked up on why I was confused. Sounds like a great tip, thanks!

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#24
post #2

Nice hack. Of course reverse dns doesn't work :-) I suppose it kinda sorta could if you tracked where a request came from and what IP you sent it and if you got a reverse lookup you could undo that, but still it is clever!

Reverse DNS is controlled by the company that owns the actual IP address. There's no way for a random website to change responses for it (unless they own the IP range, or were delegated control)

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#25
post #14
post #11

What is the use case that requires http://test.10.0.0.3.xip.io/test-page rather than http://10.0.0.3/test-page ? I've been using the latter on iphones and ipads with no problem. Honest question.

You can't test multiple sites on the same host using just the IP.

"You can't test multiple sites on the same host using just the IP."

I'm not getting what the problem is. Isn't this what ports are for? Or even just running the websites on different folders?

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#26
post #25
post #14

Earlier quoted context omitted.

You can't test multiple sites on the same host using just the IP.

"You can't test multiple sites on the same host using just the IP." I'm not getting what the problem is. Isn't this what ports are for? Or even just running the websites on different folders?

This is the best way to get a "natural" development environment (i.e. as close to production as possible). Also, it's a pain in the ass having to start and stop various apps and remember ports, which is what Pow is great for in the first place.

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#27
post #25
post #14

Earlier quoted context omitted.

You can't test multiple sites on the same host using just the IP.

"You can't test multiple sites on the same host using just the IP." I'm not getting what the problem is. Isn't this what ports are for? Or even just running the websites on different folders?

Ports are a pain in the ass compared to persistent names.

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#29
post #14
post #11

What is the use case that requires http://test.10.0.0.3.xip.io/test-page rather than http://10.0.0.3/test-page ? I've been using the latter on iphones and ipads with no problem. Honest question.

You can't test multiple sites on the same host using just the IP.

[deleted]

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#30
post #22
post #3

I hope people trust 37signals.

Trust them with what? All you'd be telling 37signals with this is your development server's internal IP address and the names of any subdomains you might be using. No actual site traffic will go to them.

If they do switch where xip.io points, they could see what you're doing with your dev server if your local DNS lets the resolution expire.

That said, I do trust them :)

Post reply on HN