Safe Haskell | None |
---|
Data types for DNS Query and Response. For more information, see http://www.ietf.org/rfc/rfc1035.
- type Domain = ByteString
- data TYPE
- intToType :: Int -> TYPE
- typeToInt :: TYPE -> Int
- toType :: String -> TYPE
- data DNSFormat = DNSFormat {
- header :: DNSHeader
- question :: [Question]
- answer :: [ResourceRecord]
- authority :: [ResourceRecord]
- additional :: [ResourceRecord]
- data DNSHeader = DNSHeader {}
- data DNSFlags = DNSFlags {
- qOrR :: QorR
- opcode :: OPCODE
- authAnswer :: Bool
- trunCation :: Bool
- recDesired :: Bool
- recAvailable :: Bool
- rcode :: RCODE
- data QorR
- = QR_Query
- | QR_Response
- data OPCODE
- data RCODE
- data ResourceRecord = ResourceRecord {}
- data Question = Question {}
- data RDATA
- responseA :: Int -> Question -> IPv4 -> DNSFormat
- responseAAAA :: Int -> Question -> IPv6 -> DNSFormat
Domain
type Domain = ByteStringSource
Type for domain.
TYPE
Types for resource records.
DNS Format
Raw data format for DNS Query and Response.
DNSFormat | |
|
DNS Header
Raw data format for the header of DNS Query and Response.
DNS Flags
Raw data format for the flags of DNS Query and Response.
DNSFlags | |
|
DNS Body
data ResourceRecord Source
Raw data format for resource records.
Raw data format for DNS questions.