- data ResolveConf = ResolveConf {
- resolveNameservers :: [Word32]
- resolveSearch :: [[String]]
- resolveNdots :: Maybe Int
- resolveTimeout :: Maybe Int
- resolveAttempts :: Maybe Int
- parseResolveConf :: FilePath -> IO (Either ParseError ResolveConf)
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.
ResolveConf | |
|