dns-2.0.10: DNS library in Haskell

Safe HaskellNone
LanguageHaskell2010

Network.DNS.Types

Contents

Description

Data types for DNS Query and Response. For more information, see http://www.ietf.org/rfc/rfc1035.

Synopsis

Domain

type Domain = ByteString #

Type for domain.

Resource Records

data OData #

Instances

Eq OData # 

Methods

(==) :: OData -> OData -> Bool #

(/=) :: OData -> OData -> Bool #

Ord OData # 

Methods

compare :: OData -> OData -> Ordering #

(<) :: OData -> OData -> Bool #

(<=) :: OData -> OData -> Bool #

(>) :: OData -> OData -> Bool #

(>=) :: OData -> OData -> Bool #

max :: OData -> OData -> OData #

min :: OData -> OData -> OData #

Show OData # 

Methods

showsPrec :: Int -> OData -> ShowS #

show :: OData -> String #

showList :: [OData] -> ShowS #

Resource Record Type

data TYPE #

Types for resource records.

Instances

data OPTTYPE #

Constructors

ClientSubnet 
OUNKNOWN Int 

Instances

Eq OPTTYPE # 

Methods

(==) :: OPTTYPE -> OPTTYPE -> Bool #

(/=) :: OPTTYPE -> OPTTYPE -> Bool #

DNS Error

data DNSError #

An enumeration of all possible DNS errors that can occur.

Constructors

SequenceNumberMismatch

The sequence number of the answer doesn't match our query. This could indicate foul play.

TimeoutExpired

The request simply timed out.

UnexpectedRDATA

The answer has the correct sequence number, but returned an unexpected RDATA format.

IllegalDomain

The domain for query is illegal.

FormatError

The name server was unable to interpret the query.

ServerFailure

The name server was unable to process this query due to a problem with the name server.

NameError

This code signifies that the domain name referenced in the query does not exist.

NotImplemented

The name server does not support the requested kind of query.

OperationRefused

The 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.

BadOptRecord

The server detected a malformed OPT RR.

DNS Message

data DNSMessage #

Raw data format for DNS Query and Response.

type DNSFormat = DNSMessage #

For backward compatibility.

DNS Header

data DNSHeader #

Raw data format for the header of DNS Query and Response.

Constructors

DNSHeader 

Fields

DNS Flags

data DNSFlags #

Raw data format for the flags of DNS Query and Response.

DNS Body

data QorR #

Constructors

QR_Query 
QR_Response 

Instances

Eq QorR # 

Methods

(==) :: QorR -> QorR -> Bool #

(/=) :: QorR -> QorR -> Bool #

Show QorR # 

Methods

showsPrec :: Int -> QorR -> ShowS #

show :: QorR -> String #

showList :: [QorR] -> ShowS #

data Question #

Raw data format for DNS questions.

Constructors

Question 

Fields