Strange one-word DNS name

Angus Mackay amackay at gusnet.cx
Sun Feb 18 19:53:53 UTC 2001


It would seem that Obi Wan (obiwan at mahood.com) said:
> Thanks.  Do you know how to convert between the two?

the hard way:
  $ perl -e 'foreach $arg (@ARGV) { $a1 = ($arg & 0xff000000)>>24; $a2 = ($arg & 0xff0000)>>16; $a3 = ($arg & 0xff00)>>8; $a4 = ($arg & 0xff); print "$arg --> $a1.$a2.$a3.$a4\n"; }' 3506561497 1047530039
  3506561497 --> 209.1.225.217
  1047530039 --> 62.112.10.55

the easy way:
  $ ping -c 1 3506561497 | grep PING
  PING 3506561497 (209.1.225.217): 56 data bytes
  $ ping -c 1 1047530039 | grep PING
  PING 1047530039 (62.112.10.55): 56 data bytes

cheers, Angus.


More information about the bind-users mailing list