hsdns: Asynchronous DNS Resolver

[ foreign, lgpl, library, network ] [ Propose Tags ] [ Report a vulnerability ]

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 <-> 127.0.0.1
FAIL: cryp.to -> 217.19.183.102 -> ["zuse.cryp.to"]
OK: www.example.com <-> 192.0.32.10

Modules

[Last Documentation]

  • ADNS
    • ADNS.Base
    • ADNS.Resolver

Flags

Automatic Flags
NameDescriptionDefault
install-examples

Build and install example programs.

Disabled

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

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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, 1.8
Dependencies base (>=3 && <5), containers, hsdns, network (>=2.6.3.0) [details]
Tested with ghc ==7.0.4, ghc ==7.4.2, ghc ==7.6.3, ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.3
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>
Revised Revision 1 made by PeterSimons at 2019-03-05T09:42:56Z
Category Foreign, Network
Home page https://github.com/peti/hsdns
Bug tracker https://github.com/peti/hsdns/issues
Source repo head: git clone git://github.com/peti/hsdns.git
Uploaded by PeterSimons at 2019-01-23T10:48:21Z
Distributions LTSHaskell:1.8, NixOS:1.8, Stackage:1.8
Reverse Dependencies 4 direct, 0 indirect [details]
Executables adns-test-and-traverse, adns-srv-test, adns-reverse-lookup
Downloads 11807 total (20 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2019-01-23 [all 3 reports]