dns-0.3.1: DNS libary in Haskell
Network.DNS.Decode
Synopsis
decode :: ByteString -> Either String DNSFormatSource
Parsing DNS data.
receive :: Socket -> Integer -> IO DNSFormatSource
Receiving DNS data from Socket and parse it. The second argument is a buffer size for the socket.
Socket