dns-1.4.2: DNS library in Haskell

Safe HaskellNone
LanguageHaskell2010

Network.DNS.Decode

Synopsis

Documentation

decode :: ByteString -> Either String DNSFormat

Parsing DNS data.

receive :: Socket -> IO DNSFormat

Receiving DNS data from Socket and parse it.

receive' :: Socket -> IO (DNSMessage (RD ByteString))

Receiving DNS data from Socket and partially parse it. Unknown RDATA sections will be left as ByteString