summaryrefslogtreecommitdiffhomepage
path: root/Network/DNS.hs
blob: 5d70f2ee51786577a28f94cd07aba1d1fb066293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{-|
  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 = makeDefaultResolver >>= DNS.lookup \"www.example.com\" A >>= print
@
-}

module Network.DNS (
    module Network.DNS.Types
  , module Network.DNS.Resolver
  ) where

import Network.DNS.Types
import Network.DNS.Resolver