resolveDns property

({Future<List<String>> Function(String query, ResolveDns recordType, [ResolveDnsOptions? options]) $1, Future<List<CAARecord>> Function(String query, String recordType, [ResolveDnsOptions? options]) $2, Future<List<MXRecord>> Function(String query, String recordType, [ResolveDnsOptions? options]) $3, Future<List<NAPTRRecord>> Function(String query, String recordType, [ResolveDnsOptions? options]) $4, Future<List<SOARecord>> Function(String query, String recordType, [ResolveDnsOptions? options]) $5, Future<List<SRVRecord>> Function(String query, String recordType, [ResolveDnsOptions? options]) $6, Future<List<List<String>>> Function(String query, String recordType, [ResolveDnsOptions? options]) $7, Future<Object> Function(String query, RecordType recordType, [ResolveDnsOptions? options]) $8}) get resolveDns

Overload accessor: $1, $2, $3, $4, $5, $6, $7, $8

Implementation

({
  /// Performs DNS resolution against the given query, returning resolved
  /// records.
  ///
  /// Fails in the cases such as:
  ///
  /// - the query is in invalid format.
  /// - the options have an invalid parameter. For example `nameServer.port` is
  ///   beyond the range of 16-bit unsigned integer.
  /// - the request timed out.
  ///
  /// ```ts
  /// const a = await Deno.resolveDns("example.com", "A");
  ///
  /// const aaaa = await Deno.resolveDns("example.com", "AAAA", {
  ///   nameServer: { ipAddr: "8.8.8.8", port: 53 },
  /// });
  /// ```
  ///
  /// Requires `allow-net` permission.
  _i2.Future<_i2.List<_i2.String>> Function(
    _i2.String query,
    _i4.ResolveDns recordType, [
    _i4.ResolveDnsOptions? options,
  ]) $1,

  /// Performs DNS resolution against the given query, returning resolved
  /// records.
  ///
  /// Fails in the cases such as:
  ///
  /// - the query is in invalid format.
  /// - the options have an invalid parameter. For example `nameServer.port` is
  ///   beyond the range of 16-bit unsigned integer.
  /// - the request timed out.
  ///
  /// ```ts
  /// const a = await Deno.resolveDns("example.com", "A");
  ///
  /// const aaaa = await Deno.resolveDns("example.com", "AAAA", {
  ///   nameServer: { ipAddr: "8.8.8.8", port: 53 },
  /// });
  /// ```
  ///
  /// Requires `allow-net` permission.
  _i2.Future<_i2.List<_i4.CAARecord>> Function(
    _i2.String query,
    _i2.String recordType, [
    _i4.ResolveDnsOptions? options,
  ]) $2,

  /// Performs DNS resolution against the given query, returning resolved
  /// records.
  ///
  /// Fails in the cases such as:
  ///
  /// - the query is in invalid format.
  /// - the options have an invalid parameter. For example `nameServer.port` is
  ///   beyond the range of 16-bit unsigned integer.
  /// - the request timed out.
  ///
  /// ```ts
  /// const a = await Deno.resolveDns("example.com", "A");
  ///
  /// const aaaa = await Deno.resolveDns("example.com", "AAAA", {
  ///   nameServer: { ipAddr: "8.8.8.8", port: 53 },
  /// });
  /// ```
  ///
  /// Requires `allow-net` permission.
  _i2.Future<_i2.List<_i4.MXRecord>> Function(
    _i2.String query,
    _i2.String recordType, [
    _i4.ResolveDnsOptions? options,
  ]) $3,

  /// Performs DNS resolution against the given query, returning resolved
  /// records.
  ///
  /// Fails in the cases such as:
  ///
  /// - the query is in invalid format.
  /// - the options have an invalid parameter. For example `nameServer.port` is
  ///   beyond the range of 16-bit unsigned integer.
  /// - the request timed out.
  ///
  /// ```ts
  /// const a = await Deno.resolveDns("example.com", "A");
  ///
  /// const aaaa = await Deno.resolveDns("example.com", "AAAA", {
  ///   nameServer: { ipAddr: "8.8.8.8", port: 53 },
  /// });
  /// ```
  ///
  /// Requires `allow-net` permission.
  _i2.Future<_i2.List<_i4.NAPTRRecord>> Function(
    _i2.String query,
    _i2.String recordType, [
    _i4.ResolveDnsOptions? options,
  ]) $4,

  /// Performs DNS resolution against the given query, returning resolved
  /// records.
  ///
  /// Fails in the cases such as:
  ///
  /// - the query is in invalid format.
  /// - the options have an invalid parameter. For example `nameServer.port` is
  ///   beyond the range of 16-bit unsigned integer.
  /// - the request timed out.
  ///
  /// ```ts
  /// const a = await Deno.resolveDns("example.com", "A");
  ///
  /// const aaaa = await Deno.resolveDns("example.com", "AAAA", {
  ///   nameServer: { ipAddr: "8.8.8.8", port: 53 },
  /// });
  /// ```
  ///
  /// Requires `allow-net` permission.
  _i2.Future<_i2.List<_i4.SOARecord>> Function(
    _i2.String query,
    _i2.String recordType, [
    _i4.ResolveDnsOptions? options,
  ]) $5,

  /// Performs DNS resolution against the given query, returning resolved
  /// records.
  ///
  /// Fails in the cases such as:
  ///
  /// - the query is in invalid format.
  /// - the options have an invalid parameter. For example `nameServer.port` is
  ///   beyond the range of 16-bit unsigned integer.
  /// - the request timed out.
  ///
  /// ```ts
  /// const a = await Deno.resolveDns("example.com", "A");
  ///
  /// const aaaa = await Deno.resolveDns("example.com", "AAAA", {
  ///   nameServer: { ipAddr: "8.8.8.8", port: 53 },
  /// });
  /// ```
  ///
  /// Requires `allow-net` permission.
  _i2.Future<_i2.List<_i4.SRVRecord>> Function(
    _i2.String query,
    _i2.String recordType, [
    _i4.ResolveDnsOptions? options,
  ]) $6,

  /// Performs DNS resolution against the given query, returning resolved
  /// records.
  ///
  /// Fails in the cases such as:
  ///
  /// - the query is in invalid format.
  /// - the options have an invalid parameter. For example `nameServer.port` is
  ///   beyond the range of 16-bit unsigned integer.
  /// - the request timed out.
  ///
  /// ```ts
  /// const a = await Deno.resolveDns("example.com", "A");
  ///
  /// const aaaa = await Deno.resolveDns("example.com", "AAAA", {
  ///   nameServer: { ipAddr: "8.8.8.8", port: 53 },
  /// });
  /// ```
  ///
  /// Requires `allow-net` permission.
  _i2.Future<_i2.List<_i2.List<_i2.String>>> Function(
    _i2.String query,
    _i2.String recordType, [
    _i4.ResolveDnsOptions? options,
  ]) $7,

  /// Performs DNS resolution against the given query, returning resolved
  /// records.
  ///
  /// Fails in the cases such as:
  ///
  /// - the query is in invalid format.
  /// - the options have an invalid parameter. For example `nameServer.port` is
  ///   beyond the range of 16-bit unsigned integer.
  /// - the request timed out.
  ///
  /// ```ts
  /// const a = await Deno.resolveDns("example.com", "A");
  ///
  /// const aaaa = await Deno.resolveDns("example.com", "AAAA", {
  ///   nameServer: { ipAddr: "8.8.8.8", port: 53 },
  /// });
  /// ```
  ///
  /// Requires `allow-net` permission.
  _i2.Future<_i2.Object> Function(
    _i2.String query,
    _i4.RecordType recordType, [
    _i4.ResolveDnsOptions? options,
  ]) $8,
}) get resolveDns => (
      $1: _resolveDns$1,
      $2: _resolveDns$2,
      $3: _resolveDns$3,
      $4: _resolveDns$4,
      $5: _resolveDns$5,
      $6: _resolveDns$6,
      $7: _resolveDns$7,
      $8: _resolveDns$8,
    );