News for hackers. Stuff that matters.
Re:Xip.io - a magic domain name that provides wildcard DNS f... by X-Istence on Friday June 08, 2012 @01:42AM (#4082870)
Source code for encode/decode is found here:

https://github.com/sstephenson/xipd/blob/master/src/index.co...

Re:Xip.io - a magic domain name that provides wildcard DNS f... by colmmacc on Friday June 08, 2012 @02:33AM (#4083015)
Thanks! it reads like a 36-ary encoding of an IP address in host byte order, rather than network byte order, which is why it seems to jump around so much.

Interestingly, it encodes 0.0.0.0.xip.io as 0.xip.io , but then refuses to answer for 0.xip.io. Why isn't obvious to me from reading the code, perhaps some kind of overflow condition is triggered by the right shift.