Fixed ordering issues with Resolv.getaddresses.