Commit 1453f6fe9c839ae593181753802dfecf4fb88921
- Diff rendering mode:
- inline
- side by side
ADNS.hs
(1 / 1)
|   | |||
| 1 | 1 | {- | | |
| 2 | 2 | Module : ADNS | |
| 3 | Copyright : (c) 2007 Peter Simons | ||
| 3 | Copyright : (c) 2008 Peter Simons | ||
| 4 | 4 | License : LGPL | |
| 5 | 5 | ||
| 6 | 6 | Maintainer : simons@cryp.to |
ADNS/Base.hsc
(4 / 5)
|   | |||
| 1 | 1 | {-# OPTIONS -fffi #-} | |
| 2 | 2 | {- | | |
| 3 | 3 | Module : ADNS.Base | |
| 4 | Copyright : (c) 2007 by Peter Simons | ||
| 5 | License : GPL2 | ||
| 4 | Copyright : (c) 2008 by Peter Simons | ||
| 5 | License : LGPL | ||
| 6 | 6 | ||
| 7 | 7 | Maintainer : simons@cryp.to | |
| 8 | 8 | Stability : provisional | |
| … | … | ||
| 13 | 13 | <http://www.gnu.org/software/adns/>. | |
| 14 | 14 | ||
| 15 | 15 | You will most likely not need this module directly: "ADNS" | |
| 16 | provides a simpler for the Haskell world; this module contains | ||
| 17 | mostly marshaling code. | ||
| 16 | provides a simpler API for the Haskell world; this module | ||
| 17 | contains mostly marshaling code. | ||
| 18 | 18 | -} | |
| 19 | 19 | ||
| 20 | 20 | module ADNS.Base where | |
| … | … | ||
| 22 | 22 | import Control.Exception ( assert, bracket ) | |
| 23 | 23 | import Network ( HostName ) | |
| 24 | 24 | import Network.Socket ( HostAddress ) | |
| 25 | import Data.Bits () | ||
| 26 | 25 | import Foreign | |
| 27 | 26 | import Foreign.C | |
| 28 | 27 | import ADNS.Endian |
ADNS/Endian.hs
(1 / 1)
|   | |||
| 1 | 1 | {- | | |
| 2 | 2 | Module : ADNS.Endian | |
| 3 | Copyright : (c) 2007 Peter Simons | ||
| 3 | Copyright : (c) 2008 Peter Simons | ||
| 4 | 4 | License : LGPL | |
| 5 | 5 | ||
| 6 | 6 | Maintainer : simons@cryp.to |
ADNS/Resolver.hs
(1 / 1)
|   | |||
| 1 | 1 | {- | | |
| 2 | 2 | Module : ADNS.Resolver | |
| 3 | Copyright : (c) 2007 Peter Simons | ||
| 3 | Copyright : (c) 2008 Peter Simons | ||
| 4 | 4 | License : LGPL | |
| 5 | 5 | ||
| 6 | 6 | Maintainer : simons@cryp.to |
README
(9 / 5)
|   | |||
| 1 | 1 | An asynchronous DNS resolver for Haskell_ | |
| 2 | 2 | ========================================= | |
| 3 | 3 | ||
| 4 | :Latest Release: hsdns-1.0.tar.gz_ | ||
| 4 | :Latest Release: hsdns-1.0-beta-1.tar.gz_ | ||
| 5 | 5 | :Darcs: darcs_ get http://cryp.to/hsdns/ | |
| 6 | 6 | ||
| 7 | 7 | Synopsis | |
| … | … | ||
| 9 | 9 | ||
| 10 | 10 | This library provides an asynchronous DNS resolver on top of | |
| 11 | 11 | the `GNU ADNS library`_. Not all options are supported, but A, | |
| 12 | MX, and PTR lookups work fine. The code has been been tested | ||
| 13 | with ADNS versions 1.0 to 1.4. | ||
| 12 | MX, and PTR lookups work nicely. Courtesy of Lutz Donnerhacke | ||
| 13 | <lutz@iks-jena.de>, there is also support for retrieving | ||
| 14 | generic RR types, CNAMEs, and for NSEC zone walking. The | ||
| 15 | library can be expected to work with fine ADNS 1.4 or later. It | ||
| 16 | might also work with version ADNS 1.3, but that hasn't been | ||
| 17 | tested. | ||
| 14 | 18 | ||
| 15 | 19 | The example program adns-reverse-lookup.hs_ demonstrates how | |
| 16 | 20 | the resolver is used. Given a list of host names on the command | |
| … | … | ||
| 37 | 37 | Copyleft | |
| 38 | 38 | -------- | |
| 39 | 39 | ||
| 40 | Copyright (c) 2007 Peter Simons <simons@cryp.to>. All rights | ||
| 40 | Copyright (c) 2008 Peter Simons <simons@cryp.to>. All rights | ||
| 41 | 41 | reserved. This software is released under the terms of the `GNU | |
| 42 | 42 | Lesser General Public License | |
| 43 | 43 | <http://www.gnu.org/licenses/lgpl.html>`_. | |
| … | … | ||
| 56 | 56 | ||
| 57 | 57 | .. _Reference Documentation: docs/index.html | |
| 58 | 58 | ||
| 59 | .. _hsdns-1.0.tar.gz: http://cryp.to/hsdns/hsdns-1.0.tar.gz | ||
| 59 | .. _hsdns-1.0-beta-1.tar.gz: http://cryp.to/hsdns/hsdns-1.0-beta-1.tar.gz | ||
| 60 | 60 | ||
| 61 | 61 | .. _adns-reverse-lookup.hs: example/adns-reverse-lookup.hs |
hsdns.cabal
(3 / 2)
|   | |||
| 1 | 1 | Name: hsdns | |
| 2 | Version: 1.0 | ||
| 3 | Author: Peter Simons <simons@cryp.to> | ||
| 2 | Version: 1.1-beta-1 | ||
| 3 | Author: Peter Simons <simons@cryp.to>, | ||
| 4 | Lutz Donnerhacke <lutz@iks-jena.de> | ||
| 4 | 5 | Maintainer: simons@cryp.to | |
| 5 | 6 | License: LGPL | |
| 6 | 7 | Homepage: http://cryp.to/hsdns/ |

