Setu-TS
    Preparing search index...

    Type Alias DnsProviderOptions

    DnsProviderOptions:
        | DnsProviderCommon & { mode: "srv" }
        | DnsProviderCommon & { mode: "a"; port: number }

    Constructor options.

    A union rather than an optional port, so 'a' mode cannot be constructed without one and there is no runtime fallback to leave untested.

    Type Declaration

    • DnsProviderCommon & { mode: "srv" }
      • Readonlymode: "srv"

        Read SRV records, honoring RFC 2782 priority tiers.

    • DnsProviderCommon & { mode: "a"; port: number }
      • Readonlymode: "a"

        Read address records.

      • Readonlyport: number

        Port every resolved address is reached on — DNS carries none.

    0.2.0