Liking cljdoc? Tell your friends :D

inet.data.arpa

Conversion between IP addresses or networks and reverse-DNS domains.

This namespace connects inet.data.ip and inet.data.dns. Neither namespace depends on the other.

Conversion between IP addresses or networks and reverse-DNS domains.

This namespace connects `inet.data.ip` and `inet.data.dns`. Neither namespace
depends on the other.
raw docstring

domain->ipclj

(domain->ip value)

Return an IP address or network represented by reverse-DNS value.

This function reads in-addr.arpa names at octet granularity and ip6.arpa names at nibble granularity. Suffix matching ignores case. The function accepts one trailing dot. Malformed input returns nil. IPv4-mapped IPv6 names stay IPv6 and therefore give an ip6.arpa result.

Return an IP address or network represented by reverse-DNS `value`.

This function reads `in-addr.arpa` names at octet granularity and `ip6.arpa`
names at nibble granularity. Suffix matching ignores case. The function
accepts one trailing dot. Malformed input returns `nil`. IPv4-mapped IPv6
names stay IPv6 and therefore give an `ip6.arpa` result.
sourceraw docstring

ip->domainclj

(ip->domain value)

Return the reverse-DNS dns/domain for IP address or network value.

This function supports IPv4 networks only at octet-aligned prefixes, and IPv6 networks only at nibble-aligned prefixes. Non-aligned prefixes return nil. This function deliberately does not implement RFC 2317 classless IPv4 delegation. It treats IPv4-mapped IPv6 values as IPv6 values and returns ip6.arpa names. Malformed input returns nil, the same as the non-exceptional behavior of ip/address? and dns/domain?.

Return the reverse-DNS `dns/domain` for IP address or network `value`.

This function supports IPv4 networks only at octet-aligned prefixes, and
IPv6 networks only at nibble-aligned prefixes. Non-aligned prefixes return
`nil`. This function deliberately does not implement RFC 2317 classless IPv4
delegation. It treats IPv4-mapped IPv6 values as IPv6 values and returns
`ip6.arpa` names. Malformed input returns `nil`, the same as the
non-exceptional behavior of `ip/address?` and `dns/domain?`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close