• Parameters

    • hostname: string
    • Optionalrrtype:
          | "A"
          | "AAAA"
          | "NS"
          | "PTR"
          | "CNAME"

    Returns Promise<string[]>

  • Parameters

    • hostname: string
    • rrtype: "ANY"

    Returns Promise<AnyRecord[]>

  • Parameters

    • hostname: string
    • rrtype: "CAA"

    Returns Promise<CaaRecord[]>

  • Parameters

    • hostname: string
    • rrtype: "MX"

    Returns Promise<MxRecord[]>

  • Parameters

    • hostname: string
    • rrtype: "NAPTR"

    Returns Promise<NaptrRecord[]>

  • Parameters

    • hostname: string
    • rrtype: "SOA"

    Returns Promise<SoaRecord>

  • Parameters

    • hostname: string
    • rrtype: "SRV"

    Returns Promise<SrvRecord[]>

  • Parameters

    • hostname: string
    • rrtype: "TLSA"

    Returns Promise<TlsaRecord[]>

  • Parameters

    • hostname: string
    • rrtype: "TXT"

    Returns Promise<string[][]>

  • Parameters

    • hostname: string
    • rrtype: string

    Returns Promise<
        | string[]
        | CaaRecord[]
        | MxRecord[]
        | NaptrRecord[]
        | SoaRecord
        | SrvRecord[]
        | TlsaRecord[]
        | string[][]
        | AnyRecord[]>