DNS
Helper functions for resolving DNS queries.
primitive val DNS
Constructors
create
new val create() : DNS val^
Returns
- DNS val^
Public Functions
apply
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
- auth: (AmbientAuth val | NetAuth val | DNSAuth val)
- host: String val
- service: String val
Returns
- Array[NetAddress val] iso^
ip4
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
- auth: (AmbientAuth val | NetAuth val | DNSAuth val)
- host: String val
- service: String val
Returns
- Array[NetAddress val] iso^
ip6
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
- auth: (AmbientAuth val | NetAuth val | DNSAuth val)
- host: String val
- service: String val
Returns
- Array[NetAddress val] iso^
broadcast_ip4
Link-local IP4 broadcast address.
fun box broadcast_ip4( auth: (AmbientAuth val | NetAuth val | DNSAuth val), service: String val) : Array[NetAddress val] iso^
Parameters
- auth: (AmbientAuth val | NetAuth val | DNSAuth val)
- service: String val
Returns
- Array[NetAddress val] iso^
broadcast_ip6
Link-local IP6 broadcast address.
fun box broadcast_ip6( auth: (AmbientAuth val | NetAuth val | DNSAuth val), service: String val) : Array[NetAddress val] iso^
Parameters
- auth: (AmbientAuth val | NetAuth val | DNSAuth val)
- service: String val
Returns
- Array[NetAddress val] iso^
is_ip4
Returns true if the host is a literal IPv4 address.
fun box is_ip4( host: String val) : Bool val
Parameters
- host: String val
Returns
- Bool val
is_ip6
Returns true if the host is a literal IPv6 address.
fun box is_ip6( host: String val) : Bool val
Parameters
- host: String val
Returns
- Bool val
eq
fun box eq( that: DNS val) : Bool val
Parameters
- that: DNS val
Returns
- Bool val
ne
fun box ne( that: DNS val) : Bool val
Parameters
- that: DNS val
Returns
- Bool val
© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/net-DNS