ObjFW
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
OFDNSResourceRecord.h File Reference
import "OFObject.h"
import "OFSocket.h"
import "OFString.h"
import "OFAAAADNSResourceRecord.h"
import "OFADNSResourceRecord.h"
import "OFCNAMEDNSResourceRecord.h"
import "OFHINFODNSResourceRecord.h"
import "OFLOCDNSResourceRecord.h"
import "OFMXDNSResourceRecord.h"
import "OFNSDNSResourceRecord.h"
import "OFPTRDNSResourceRecord.h"
import "OFRPDNSResourceRecord.h"
import "OFSOADNSResourceRecord.h"
import "OFSRVDNSResourceRecord.h"
import "OFTXTDNSResourceRecord.h"
import "OFURIDNSResourceRecord.h"

Go to the source code of this file.

Classes

class  OFDNSResourceRecord
 A class representing a DNS resource record. More...
 

Enumerations

enum  OFDNSClass { OFDNSClassIN = 1 , OFDNSClassAny = 255 }
 The DNS class. More...
 
enum  OFDNSRecordType {
  OFDNSRecordTypeA = 1 , OFDNSRecordTypeNS = 2 , OFDNSRecordTypeCNAME = 5 , OFDNSRecordTypeSOA = 6 ,
  OFDNSRecordTypePTR = 12 , OFDNSRecordTypeHINFO = 13 , OFDNSRecordTypeMX = 15 , OFDNSRecordTypeTXT = 16 ,
  OFDNSRecordTypeRP = 17 , OFDNSRecordTypeAAAA = 28 , OFDNSRecordTypeLOC = 29 , OFDNSRecordTypeSRV = 33 ,
  OFDNSRecordTypeAll = 255 , OFDNSRecordTypeURI = 256
}
 The type of a DNS resource record. More...
 

Functions

OFStringOFDNSClassName (OFDNSClass DNSClass)
 Returns the name for the specified OFDNSClass.
 
OFStringOFDNSRecordTypeName (OFDNSRecordType recordType)
 Returns the name for the specified OFDNSRecordType.
 
OFDNSClass OFDNSClassParseName (OFString *string)
 Parses the specified string as an OFDNSClass.
 
OFDNSRecordType OFDNSRecordTypeParseName (OFString *string)
 Parses the specified string as an OFDNSRecordType.
 

Enumeration Type Documentation

◆ OFDNSClass

enum OFDNSClass

The DNS class.

Enumerator
OFDNSClassIN 

IN

OFDNSClassAny 

Any class. Only for queries.

◆ OFDNSRecordType

The type of a DNS resource record.

Enumerator
OFDNSRecordTypeA 

A

OFDNSRecordTypeNS 

NS

OFDNSRecordTypeCNAME 

CNAME

OFDNSRecordTypeSOA 

SOA

OFDNSRecordTypePTR 

PTR

OFDNSRecordTypeHINFO 

HINFO

OFDNSRecordTypeMX 

MX

OFDNSRecordTypeTXT 

TXT

OFDNSRecordTypeRP 

RP

OFDNSRecordTypeAAAA 

AAAA

OFDNSRecordTypeLOC 

LOC

OFDNSRecordTypeSRV 

SRV

OFDNSRecordTypeAll 

All types. Only for queries.

OFDNSRecordTypeURI 

URI

Function Documentation

◆ OFDNSClassName()

OFString * OFDNSClassName ( OFDNSClass DNSClass)
extern

Returns the name for the specified OFDNSClass.

Parameters
DNSClassThe OFDNSClass to return the name for
Returns
The name for the specified OFDNSClass

◆ OFDNSClassParseName()

OFDNSClass OFDNSClassParseName ( OFString * string)
extern

Parses the specified string as an OFDNSClass.

Parameters
stringThe string to parse as an OFDNSClass
Returns
The parsed OFDNSClass
Exceptions
OFInvalidFormatExceptionThe specified string is not valid DNS class

◆ OFDNSRecordTypeName()

OFString * OFDNSRecordTypeName ( OFDNSRecordType recordType)
extern

Returns the name for the specified OFDNSRecordType.

Parameters
recordTypeThe OFDNSRecordType to return the name for
Returns
The name for the specified OFDNSRecordType

◆ OFDNSRecordTypeParseName()

OFDNSRecordType OFDNSRecordTypeParseName ( OFString * string)
extern

Parses the specified string as an OFDNSRecordType.

Parameters
stringThe string to parse as an OFDNSRecordType
Returns
The parsed OFDNSRecordType
Exceptions
OFInvalidFormatExceptionThe specified string is not valid DNS class