Function tcpWhois

  • Connects to the provided server:port through TCP (through a proxy if a proxy is given), run the WhoIs query and returns the response

    Parameters

    • domain: string

      Domain name

    • queryOptions: string

      Query options which can be used with the specific WhoIs server to get the complete response

    • server: string

      WhoIs server

    • port: number

      WhoIs server port

    • encoding: string

      Encoding used by the WhoIs server

    • proxy: null | ProxyData

    Returns Promise<string>

    The {string} WhoIs response for the query. Empty string is returned for errors

Generated using TypeDoc