summaryrefslogtreecommitdiffhomepage
path: root/Network/DNS/Resolver.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Network/DNS/Resolver.hs')
-rw-r--r--Network/DNS/Resolver.hs17
1 files changed, 17 insertions, 0 deletions
diff --git a/Network/DNS/Resolver.hs b/Network/DNS/Resolver.hs
index a685d37..1e5ecf5 100644
--- a/Network/DNS/Resolver.hs
+++ b/Network/DNS/Resolver.hs
@@ -1,11 +1,28 @@
{-|
DNS Resolver and lookup functions.
+
+ 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
+@
-}
module Network.DNS.Resolver (
+ -- * Documentation
+ -- ** Configuration for resolver
FileOrNumericHost(..), ResolvConf(..), defaultResolvConf
+ -- ** Intermediate data type for resolver
, ResolvSeed, makeResolvSeed
+ -- ** Type and function for resolver
, Resolver, withResolver
+ -- ** Looking up functions
, lookup, lookupRaw
) where