IPv6 prefix representation by twobit

s=""for
x in(io.read()..":::"):gfind".-:"do
s=s..("0000"..x):sub(-5,-2)end
print(s:reverse():sub(-32):gsub(".","%0.").."ip6.arpa.")

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page