PTR

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

convert IP addresses to DNS PTR record format.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

127.0.0.1
192.0.2.1
10.20.30.40
172.16.1.99
192.168.0.255

Sample output:

1.0.0.127.in-addr.arpa
1.2.0.192.in-addr.arpa
40.30.20.10.in-addr.arpa
99.1.16.172.in-addr.arpa
255.0.168.192.in-addr.arpa

Sample input:_

::1
0000:0000:0000:0000:0000:0000:0000:0001
0:0:0:0:0:0:0:1
0::1
0:0::0:1
2001:db8::
2001:db8::0:00:000:0000
2001:0db8:0123:4567:89ab:cdef:0123:abcd
2001:db8::dead:beaf
2001:0db8::dead:beaf
2001:db8:0:0:0:0:dead:beaf
2001:0db8:0000:0000:0000:0000:dead:beaf
2001:db8::123:0:4567:0:89ab
2001:db8:0:123::4567:0:89ab
2001:db8:0:123:0:4567::89ab
2001:db8:0:123:0:4567:0:89ab

Sample output:

1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa
d.c.b.a.3.2.1.0.f.e.d.c.b.a.9.8.7.6.5.4.3.2.1.0.8.b.d.0.1.0.0.2.ip6.arpa
f.a.e.b.d.a.e.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa
f.a.e.b.d.a.e.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa
f.a.e.b.d.a.e.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa
f.a.e.b.d.a.e.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa
b.a.9.8.0.0.0.0.7.6.5.4.0.0.0.0.3.2.1.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa
b.a.9.8.0.0.0.0.7.6.5.4.0.0.0.0.3.2.1.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa
b.a.9.8.0.0.0.0.7.6.5.4.0.0.0.0.3.2.1.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa
b.a.9.8.0.0.0.0.7.6.5.4.0.0.0.0.3.2.1.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1eban470.06442009/06/22 01:04:000B / 37B / 7B

Perl _

RankUserSizeTimeDateStatistics
1dcutter1430.28932009/06/28 18:31:110B / 56B / 84B

Python _

RankUserSizeTimeDateStatistics
1Defenestrator1760.44812009/06/29 09:38:440B / 109B / 62B

PHP _

RankUserSizeTimeDateStatistics
1o-cn2000.00562009/11/25 20:36:15111B / 62B / 24B
2Chiether2860.09312009/07/28 15:52:550B / 164B / 121B

Lua _

RankUserSizeTimeDateStatistics
1yamaya2980.04642009/06/24 03:08:560B / 164B / 110B
2murky-satyr2920.00172009/12/16 19:50:410B / 160B / 111B

C _

RankUserSizeTimeDateStatistics
151b2210.04372009/06/28 21:56:510B / 114B / 107B

D _

RankUserSizeTimeDateStatistics
151b2590.02262009/07/26 14:12:430B / 147B / 107B

AWK _

RankUserSizeTimeDateStatistics
1nn1980.01972009/06/25 16:04:290B / 115B / 79B
2yamaya2170.01852009/06/24 02:04:180B / 103B / 108B
3nn1600.12062009/07/28 18:56:500B / 67B / 92B
4yamaya1750.02292009/07/26 01:31:570B / 79B / 96B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)2100.79852009/06/28 22:45:5989B / 70B / 51B
2yshl3610.75802009/06/28 22:45:450B / 258B / 63B

goruby _

RankUserSizeTimeDateStatistics
1leonid300.09992010/01/03 20:56:260B / 20B / 9B
2murky-satyr310.33222009/12/31 21:36:090B / 20B / 9B

Groovy _

RankUserSizeTimeDateStatistics
1nn1887.28842009/06/27 01:15:560B / 105B / 82B
2murky-satyr1802.41482009/12/31 21:29:490B / 102B / 76B

Language Ranking_

RankLangUserSizeScore
1gorubyleonid3010000
2Rubyeban476382
3Perldcutter1432097
4AWKnn1601875
5PythonDefenestrator1761704
6Groovymurky-satyr1801666
7PHPo-cn2001500
8Postscriptyshl(bin)2101428
9C51b2211357
10D51b2591158
11Luamurky-satyr2921027

return to the top page