What's going on here?

irb(main):002:0> require 'ipaddr'
=> true

irb(main):003:0> ip = IPAddr.new('192.168.1.1024')
=> #<IPAddr: IPv4:192.168.5.0/255.255.255.255>

irb(main):005:0> IPSocket.getaddress('192.168.1.1024')
=> "68.142.212.71"

irb(main):003:0> IPSocket.getaddress('asd')
=> "68.142.212.71"

martin