code: function getHostType(host) {
    if (net.isIPv4(host)) {
      return ATYP_V4;
    }
    if (net.isIPv6(host)) {
      return ATYP_V6;
    }
    return ATYP_DOMAIN;
  }
docs: const REPLY_ADDRESS_TYPE_NOT_SUPPORTED = 0x08; const REPLY_UNASSIGNED = 0xff;