# class DnsRecord | A DNS record. More...
Full name | `TelEngine::DnsRecord`
Definition | `#include <yateclass.h>`
Inherits | TelEngine::GenObject [public ]
Inherited by | NaptrRecord, SrvRecord
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- inline DnsRecord (int order, int pref)
- inline DnsRecord ()
- inline int order () const
- inline int pref () const
- virtual void dump (String& buf, const char* sep = " ")

#### Public Static Methods

- static bool insert (ObjList& list, DnsRecord* rec, bool ascPref)

#### Protected Members

- int m_order
- int m_pref

## Detailed Description

This class holds a DNS (resolver) record

inline DnsRecord (int order, int pref) | ### DnsRecord

Build a DNS record

Parameters:

order | Record order (priority)
pref | Record preference

inline DnsRecord () | ### DnsRecord

Default constructor

inline int order () | ### order

[const]

Retrieve the record order

Returns: Record order

inline int pref () | ### pref

[const]

Retrieve the record preference

Returns: Record preference

void dump (String& buf, const char* sep = " ") | ### dump

[virtual]

Dump a record for debug purposes

Parameters:

buf | Destination buffer
sep | Fields separator

bool insert (ObjList& list, DnsRecord* rec, bool ascPref) | ### insert

[static]

Insert a DnsRecord into a list in the proper location given by order and preference

Parameters:

list | Destination list
rec | The item to insert
ascPref | Order preference ascending

Returns: True on success, false on failure (already in the list)

int m_order | ### m_order

[protected]

int m_pref | ### m_pref

[protected]

Generated by: paulc on bussard on Fri Dec 21 16:28:34 2012, using kdoc 2.0a54.