The hsdns package
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 xyz.example.org ecrc.de www.example.com www.cryp.to OK: www.example.com <-> 208.77.188.166 ERR: xyz.example.org: cannot resolve A FAIL: www.cryp.to -> 195.234.152.69 -> ["research.cryp.to"] FAIL: ecrc.de -> 127.0.0.1 -> ["localhost"]
Properties
| Versions | 1.0, 1.1, 1.3, 1.4, 1.4.1, 1.4.2, 1.4.3, 1.5, 1.6 |
|---|---|
| Dependencies | base (≥3 & <5), containers, network |
| License | LGPL |
| Copyright | (c) 2004-2010 Peter Simons |
| Author | Peter Simons <simons@cryp.to>, Lutz Donnerhacke <lutz@iks-jena.de>, Григорий Холомьёв <omever@gmail.com> |
| Maintainer | Peter Simons <simons@cryp.to> |
| Category | Foreign, Network |
| Home page | http://gitorious.org/hsdns |
| Source repository | git clone git://gitorious.org/hsdns/mainline.git |
| Upload date | Thu Feb 25 23:52:52 UTC 2010 |
| Uploaded by | PeterSimons |
| Built on | ghc-6.12 |
| Distributions | NixOS: 1.6 |
Modules
Downloads
- hsdns-1.4.2.tar.gz (Cabal source package)
- package description (included in the package)