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: (AmbientAuth val | NetAuth val | 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: (AmbientAuth val | NetAuth val | 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: (AmbientAuth val | NetAuth val | 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: (AmbientAuth val | NetAuth val | DNSAuth val),
  service: String val)
: Array[NetAddress val] iso^

Parameters

Returns

broadcast_ip6

[Source]

Link-local IP6 broadcast address.

fun box broadcast_ip6(
  auth: (AmbientAuth val | NetAuth val | 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

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/net-DNS