code: function peerResolved (ip, addressType) {
      // Possible cancelation during DNS lookup.
      if (!socket._connecting) return;
  
      socket._peer = { address: ip || '127.0.0.1', port: options.port };
  
      // Generate random bytes used to set randomized socket properties.
      // `crypto.randomBytes` calls OpenSSL `RAND_bytes` to generate the bytes.
      //
      //  * [RAND_bytes](http://www.openssl.org/docs/crypto/RAND_bytes.html).
      //  * [node_crypto.cc](https://github.com/joyent/node/blob/v0.8/src/node_crypto.cc#L4517)
      crypto.randomBytes(4, valid(randomzied));
    }
docs: Record the DNS resolved IP address.