Regdom v0.0.1 Regdom

Elixir port of regdom-lib. Somewhat anacronistic with the introduction of gtlds. Has no network dependency.

Summary

Functions

returns the registered domain from a hostname if there is one. Returns nil if there isn’t. Optionally set strict to false to have any ‘valid’ but unregistered domain be succeed

Functions

get_registered_domain(host, strict \\ true)

Specs

get_registered_domain(String.t, boolean) ::
  String.t |
  nil

returns the registered domain from a hostname if there is one. Returns nil if there isn’t. Optionally set strict to false to have any ‘valid’ but unregistered domain be succeed