The hsdns package

[Tags:lgpl, library]

This library provides an asynchronous DNS resolver on top of GNU 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 localhost
 OK: localhost <->
 FAIL: -> -> [""]
 OK: <->


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
Dependencies base (>=3 && <4.7), containers (<0.6), network (<2.7) [details]
License LGPL
Copyright (c) 2004-2010 Peter Simons
Author Peter Simons <>, Lutz Donnerhacke <>, Григорий Холомьёв <>, Evan Rinehart <>
Maintainer Peter Simons <>
Category Foreign, Network
Home page
Source repository head: git clone git://
Uploaded Thu Nov 18 13:16:45 UTC 2010 by PeterSimons
Updated Sun Dec 25 09:24:07 UTC 2016 by HerbertValerioRiedel to revision 1
Distributions LTSHaskell:1.7, NixOS:1.7, Stackage:1.7, Tumbleweed:1.7
Downloads 2556 total (23 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees