hsdns: Asynchronous DNS Resolver

[ foreign, lgpl, library, network ] [ Propose Tags ]

This library provides an asynchronous DNS resolver on top of GNU ADNS http://www.chiark.greenend.org.uk/~ian/adns/. Not all options are supported, but A, MX, and PTR lookups work nicely. There is also support for retrieving generic RR types, CNAMEs, and for NSEC zone walking. The library can be expected to work with fine ADNS 1.4 or later. It might also work with version ADNS 1.3, but that hasn't been tested.

The example program adns-reverse-lookup.hs demonstrates how the resolver is used. Given a list of host names on the command line, it performs an A/PTR double-lookup and checks whether the records are consistent. The output is printed in the order in which the DNS responses arrive:

$ ./adns-reverse-lookup cryp.to localhost www.example.com
OK: localhost <->
FAIL: cryp.to -> -> ["zuse.cryp.to"]
OK: www.example.com <->
Versions 1.0, 1.1, 1.3, 1.4, 1.4.1, 1.4.2, 1.4.3, 1.5, 1.6, 1.6.1, 1.7, 1.7.1
Dependencies base (>=3 && <5), containers, hsdns, network (>= [details]
License LGPL-3.0-only
Copyright Peter Simons
Author Peter Simons <simons@cryp.to>, Lutz Donnerhacke <lutz@iks-jena.de>, Григорий Холомьёв <omever@gmail.com>, Evan Rinehart <ebr@sciresearch.com>
Maintainer Peter Simons <simons@cryp.to>
Category Foreign, Network
Home page http://github.com/peti/hsdns
Bug tracker http://github.com/peti/hsdns/issues
Source repo head: git clone git://github.com/peti/hsdns.git
Uploaded by PeterSimons at Tue Jan 30 11:59:51 UTC 2018
Distributions LTSHaskell:1.7.1, NixOS:1.7.1, Stackage:1.7.1
Executables adns-test-and-traverse, adns-srv-test, adns-reverse-lookup
Downloads 5506 total (64 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2018-01-30 [all 1 reports]





Build and install example programs.


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees