dns-0.3.8: DNS library in Haskell

Safe HaskellNone

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 = ByteStringSource

Type for domain.

TYPE

data TYPE Source

Types for resource records.

Constructors

A 
AAAA 
NS 
TXT 
MX 
CNAME 
SOA 
PTR 
SRV 
UNKNOWN Int 

Instances

DNS Format

data DNSFormat Source

Raw data format for DNS Query and Response.

DNS Header

data DNSHeader Source

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

Constructors

DNSHeader 

DNS Flags

data DNSFlags Source

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

Instances

DNS Body

data QorR Source

Constructors

QR_Query 
QR_Response 

Instances

data OPCODE Source

Constructors

OP_STD 
OP_INV 
OP_SSR 

data ResourceRecord Source

Raw data format for resource records.

Constructors

ResourceRecord 

Fields

rrname :: Domain
 
rrtype :: TYPE
 
rrttl :: Int
 
rdlen :: Int
 
rdata :: RDATA
 

data Question Source

Raw data format for DNS questions.

Constructors

Question 

Fields

qname :: Domain
 
qtype :: TYPE
 

Instances