lookup-reverse-hostname-in-deep-dict
v0.1.0
Published
Lookup a reverse hostname (net.example.domain.sub.dom.ains) in a dictionary object where each level has one hostname part as the keys – or certain kinds of wildcards.
Downloads
72
Readme
lookup-reverse-hostname-in-deep-dict
Lookup a reverse hostname (net.example.domain.sub.dom.ains) in a dictionary object where each level has one hostname part as the keys – or certain kinds of wildcards.
API
This module exports one function:
lookupReverseHostnameInDeepDict(dict, revHostNameParts) {
Looks up revHostNameParts
, which should be an array of host name parts,
from most significant (top-level domain) to most specific, in dict
.
Returns a report object if the hostname is found, or false
otherwise.
:TODO: Document the report format.
Usage
see test/usage.mjs.
Dictionary format
:TODO:
Known issues
- Needs more/better tests and docs.
License
ISC