0.1.0 • Published 8 months ago

lookup-reverse-hostname-in-deep-dict v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

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

0.1.0

8 months ago