Skip to content

DNS

[Source]

Helper functions for resolving DNS queries.

primitive val DNS

Constructors

create

[Source]

new val create()
: DNS val^

Returns


Public Functions

apply

[Source]

Gets all IPv4 and IPv6 addresses for a host and service.

fun box apply(
  auth: DNSAuth val,
  host: String val,
  service: String val)
: Array[NetAddress val] iso^

Parameters

Returns


ip4

[Source]

Gets all IPv4 addresses for a host and service.

fun box ip4(
  auth: DNSAuth val,
  host: String val,
  service: String val)
: Array[NetAddress val] iso^

Parameters

Returns


ip6

[Source]

Gets all IPv6 addresses for a host and service.

fun box ip6(
  auth: DNSAuth val,
  host: String val,
  service: String val)
: Array[NetAddress val] iso^

Parameters

Returns


broadcast_ip4

[Source]

Link-local IP4 broadcast address.

fun box broadcast_ip4(
  auth: DNSAuth val,
  service: String val)
: Array[NetAddress val] iso^

Parameters

Returns


broadcast_ip6

[Source]

Link-local IP6 broadcast address.

fun box broadcast_ip6(
  auth: DNSAuth val,
  service: String val)
: Array[NetAddress val] iso^

Parameters

Returns


is_ip4

[Source]

Returns true if the host is a literal IPv4 address.

fun box is_ip4(
  host: String val)
: Bool val

Parameters

Returns


is_ip6

[Source]

Returns true if the host is a literal IPv6 address.

fun box is_ip6(
  host: String val)
: Bool val

Parameters

Returns


eq

[Source]

fun box eq(
  that: DNS val)
: Bool val

Parameters

  • that: DNS val

Returns


ne

[Source]

fun box ne(
  that: DNS val)
: Bool val

Parameters

  • that: DNS val

Returns