network-dns-0.1.1: A pure Haskell, asyncronous DNS client library

Network.DNS.ResolveConfParse

Synopsis

Documentation

data ResolveConf Source

This is the result of parsing a resolv.conf like file. The search path is either taken from a search line in the config, a domain line in the config or from the domainname of the current host. If it's taken from the config, the last line takes precedent. It's in a form like:

 [["london", "myorg", "org"], ["myorg", "org"]]

The maybe members are set to the found values if they are there. Otherwise they are Nothing.

Constructors

ResolveConf 

Fields

resolveNameservers :: [Word32]

a list of IPs in big-endian format

resolveSearch :: [[String]]

the search path

resolveNdots :: Maybe Int
 
resolveTimeout :: Maybe Int
 
resolveAttempts :: Maybe Int
 

Instances