dns-0.1.0: DNS libary in Haskell

Network.DNS

Description

Thread-safe DNS library written in Haskell.

Currently, only resolver side is supported. This code is written in Haskell, not using FFI. So, the "-threaded" option for GHC is not necessary.

Sample code:

    import qualified Network.DNS as DNS (lookup)
    import Network.DNS hiding (lookup)
    main :: IO ()
    main = do
        rs <- makeResolvSeed defaultResolvConf
        withResolver rs $ \resolver -> do
            DNS.lookup resolver "www.example.com" A >>= print

Documentation