• Retrieves the IP address associated with a given domain.

    Parameters

    • domain: string

      The domain for which to retrieve the IP address.

    Returns Promise<string>

    A Promise that resolves to the IP address.

    If no IP address is found or if the domain name is invalid.