Skip to content

loguntsov/native_dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 27, 2018
4ad2771 · Feb 27, 2018

History

2 Commits
Feb 27, 2018
Feb 27, 2018
Feb 27, 2018
Feb 27, 2018
Feb 27, 2018
Feb 27, 2018

Repository files navigation

Native DNS client

It allow you to make many requests per second for DNS servers to resolve DNS-names. It support A and MX records.

Usage

  { ok, P } = native_dns_client:start_link(0),
  {ok, [_IPS], _Timeout } = native_dns_client:query(P, 'A', <<"ya.ru">>, <<"8.8.8.8">>, 5000),
  {ok, [_IPS], _Timeout } = native_dns_client:query(P, 'MX', <<"ya.ru">>, <<"8.8.8.8">>, 5000).

You can use one client instance from several parallel working processes.

Links

Based on: https://github.com/hepek/erldnsclient

License

MIT