network-dns-0.1: A pure Haskell, asyncronous DNS client libraryContentsIndex
Network.DNS.Types
Description
Contains DNS types which users of the DNS library may need to use. Private types are mostly kept in Network.DNS.Common
Synopsis
data DNSType
= A
| NS
| CNAME
| SOA
| PTR
| MX
| TXT
| AAAA
| UnknownDNSType
data ResponseCode
= NoError
| FormatError
| ServerError
| NXDomain
| NotImplemented
| AccessDenied
data RR
= RRCNAME [String]
| RRMX [(Int, [String])]
| RRNS [String]
| RRPTR [String]
| RRSOA {
soaName :: [String]
soaRname :: [String]
soaSerial :: Word32
soaRefresh :: Word32
soaRetry :: Word32
soaExpire :: Word32
soaMinTTL :: Word32
}
| RRTXT ByteString
| RRA [HostAddress]
| RRAAAA [HostAddress6]
rrToType :: RR -> DNSType
Documentation
data DNSType
Types of DNS resources. RFC 1035, 3.2.2.
Constructors
A
NS
CNAME
SOA
PTR
MX
TXT
AAAA
UnknownDNSTypeThis is for internal error handling and should never be used or seen outside Network.DNS
show/hide Instances
data ResponseCode
Error codes. RFC 1035, 4.1.1.
Constructors
NoError
FormatErrorThe name server was unable to interpret the query
ServerErrorThe name server was unable to process this query due to a problem with the name server
NXDomainMeaningful only for responses from an authoritative name server, this code signifies that the domain name referenced in the query does not exist
NotImplementedThe name server does not support the requested kind of query.
AccessDeniedThe name server refuses to perform the specified operation for policy reasons. For example, a name server may not wish to provide the information to the particular requester, or a name server may not wish to perform a particular operation (e.g., zone transfer) for particular data.
show/hide Instances
data RR
Resource record types. There store the actual data in the DNS database. There's one for each DNSType
Constructors
RRCNAME [String]
RRMX [(Int, [String])]a list of preferences and hostnames
RRNS [String]
RRPTR [String]
RRSOA
soaName :: [String]
soaRname :: [String]
soaSerial :: Word32
soaRefresh :: Word32
soaRetry :: Word32
soaExpire :: Word32
soaMinTTL :: Word32
RRTXT ByteString
RRA [HostAddress]
RRAAAA [HostAddress6]
show/hide Instances
rrToType :: RR -> DNSType
Given an RR, this tells you the resource type of it
Produced by Haddock version 0.8