| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Hans.Dns
- type HostName = ByteString
 - data HostEntry = HostEntry {
- hostName :: HostName
 - hostAliases :: [HostName]
 - hostAddresses :: [IP4]
 
 - parseHostEntry :: Source -> [RR] -> HostEntry
 - parseAddr :: HostName -> [RR] -> HostEntry
 - parsePtr :: IP4 -> [RR] -> HostEntry
 - data DnsException = NoNameServers
 - getHostByName :: HasNetworkStack ns => ns -> HostName -> IO (Maybe HostEntry)
 - sendRequest :: HasNetworkStack ns => ns -> Source -> IO (Maybe HostEntry)
 - queryServers4 :: UdpSocket IP4 -> ByteString -> [IP4] -> IO (Maybe DNSPacket)
 - data Source
 - sourceHost :: Source -> Name
 - toLabels :: HostName -> Name
 - sourceQType :: Source -> [QType]
 - mkPacket :: Source -> Word16 -> DNSPacket
 
Documentation
type HostName = ByteString Source #
Constructors
| HostEntry | |
Fields 
  | |
getHostByName :: HasNetworkStack ns => ns -> HostName -> IO (Maybe HostEntry) Source #
sendRequest :: HasNetworkStack ns => ns -> Source -> IO (Maybe HostEntry) Source #
queryServers4 :: UdpSocket IP4 -> ByteString -> [IP4] -> IO (Maybe DNSPacket) Source #
sourceHost :: Source -> Name Source #
sourceQType :: Source -> [QType] Source #