This project performs WHOIS requests.
This project is standing by while I am developing others. Anyway, if you want to contribute, I will help you ;).
This project is self-contained and it doesn't have any requirement.
It is being developed and tested on Erlang/OTP 17.
whois.erl is an OTP application, with its own supervisor.
TODO? That supervisor uses an ETS table whois_server
for keeping the state of the requests and responses.
TODO async...
TlRecord = whois:lookup("domain.com").
TldRecord = whois:lookup(<<"sub.domain.com">>).
TldRecord
Instead of using whois:lookup/1
, which involves preparing the module on every call, it is possible to run a server, and query it directly: TODO
Pid = whois_server:start(Options),
receive
{ok, TldRecords} ->
other:action(TldRecords),
loop();
{error, Reason} ->
Reason
end,
Pid ! {whois, "domain.com"},
%% Pid ! {whois, ["domain1.com", "domain2.com"]},
whois_server:start:stop().
You can update it, indepently of the rhythm of this project, using TODO.
- Create an issue TODO
Juan Antonio MartĂn Lucas (https://github.com/j-a-m-l)
This package is licensed under the MIT license.