network-dns-0.1.1: A pure Haskell, asyncronous DNS client library

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

Documentation

data DNSType Source

Types of DNS resources. RFC 1035, 3.2.2.

Constructors

A 
NS 
CNAME 
SOA 
PTR 
MX 
TXT 
AAAA 
UnknownDNSType

This is for internal error handling and should never be used or seen outside Network.DNS

data ResponseCode Source

Error codes. RFC 1035, 4.1.1.

Constructors

NoError 
FormatError

The name server was unable to interpret the query

ServerError

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

NXDomain

Meaningful only for responses from an authoritative name server, 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.

AccessDenied

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.

data RR Source

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 
RRTXT ByteString 
RRA [HostAddress] 
RRAAAA [HostAddress6] 

Instances

rrToType :: RR -> DNSTypeSource

Given an RR, this tells you the resource type of it