Conversion between IP addresses or networks and reverse-DNS domains.
This namespace is the bridge between 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 is the bridge between `inet.data.ip` and `inet.data.dns`; neither namespace depends on the other.
(domain->ip value)Return an IP address or network represented by reverse-DNS value.
in-addr.arpa names are interpreted at octet granularity and ip6.arpa
names at nibble granularity. Suffix matching is case-insensitive and one
trailing dot is accepted. Malformed input returns nil. IPv4-mapped IPv6
names remain IPv6 and therefore return an ip6.arpa result.
Return an IP address or network represented by reverse-DNS `value`. `in-addr.arpa` names are interpreted at octet granularity and `ip6.arpa` names at nibble granularity. Suffix matching is case-insensitive and one trailing dot is accepted. Malformed input returns `nil`. IPv4-mapped IPv6 names remain IPv6 and therefore return an `ip6.arpa` result.
(ip->domain value)Return the reverse-DNS dns/domain for IP address or network value.
IPv4 networks are supported only at octet-aligned prefixes, and IPv6
networks only at nibble-aligned prefixes. Non-aligned prefixes return nil;
RFC 2317 classless IPv4 delegation is intentionally not implemented here.
IPv4-mapped IPv6 values are treated as IPv6 values and produce ip6.arpa
names. Malformed input returns nil, following the non-exceptional behavior
of ip/address? and dns/domain?.
Return the reverse-DNS `dns/domain` for IP address or network `value`. IPv4 networks are supported only at octet-aligned prefixes, and IPv6 networks only at nibble-aligned prefixes. Non-aligned prefixes return `nil`; RFC 2317 classless IPv4 delegation is intentionally not implemented here. IPv4-mapped IPv6 values are treated as IPv6 values and produce `ip6.arpa` names. Malformed input returns `nil`, following the non-exceptional behavior of `ip/address?` and `dns/domain?`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |