ldns_struct_resolver Struct Reference

DNS stub resolver structure. More...


Data Fields

uint16_t _port
 Port to send queries to.
ldns_rdf ** _nameservers
 Array of nameservers to query (IP addresses or dnames).
size_t _nameserver_count
 Number of nameservers in _nameservers.
size_t * _rtt
 Round trip time; 0 -> infinity.
bool _recursive
 Wether or not to be recursive.
bool _debug
 Print debug information.
ldns_rdf_domain
 Default domain to add to non fully qualified domain names.
ldns_rdf ** _searchlist
 Searchlist array, add the names in this array if a query cannot be found.
size_t _searchlist_count
 Number of entries in the searchlist array.
uint8_t _retry
 Number of times to retry before giving up.
uint8_t _retrans
 Time to wait before retrying.
bool _dnssec
 Whether to do DNSSEC.
bool _dnssec_cd
 Whether to set the CD bit on DNSSEC requests.
bool _usevc
 Whether to use tcp or udp (tcp if the value is true).
bool _igntc
 Whether to ignore the tc bit.
uint8_t _ip6
 Whether to use ip6, 0->does not matter, 1 is IPv4, 2 is IPv6.
bool _defnames
 If true append the default domain.
bool _dnsrch
 If true apply the search list.
struct timeval _timeout
 Timeout for socket connections.
bool _fail
 Only try the first nameserver, and return with an error directly if it fails.
bool _random
 Randomly choose a nameserver.
int _socket
 Keep some things to make AXFR possible.
int _axfr_soa_count
 Count the number of LDNS_RR_TYPE_SOA RRs we have seen so far (the second one signifies the end of the AXFR).
ldns_pkt_cur_axfr_pkt
 Packet currently handled when doing part of an AXFR.
uint16_t _axfr_i
 Counter for within the AXFR packets.
uint16_t _edns_udp_size
char * _tsig_keyname
 Name of the key to use with TSIG, if _tsig_keyname and _tsig_keydata both contain values, outgoing messages are automatically signed with TSIG.
char * _tsig_keydata
 Secret key data to use with TSIG, if _tsig_keyname and _tsig_keydata both contain values, outgoing messages are automatically signed with TSIG.
char * _tsig_algorithm
 TSIG signing algorithm.


Detailed Description

DNS stub resolver structure.

Definition at line 55 of file resolver.h.


Field Documentation

uint16_t ldns_struct_resolver::_port

Port to send queries to.

Definition at line 58 of file resolver.h.

ldns_rdf** ldns_struct_resolver::_nameservers

Array of nameservers to query (IP addresses or dnames).

Definition at line 61 of file resolver.h.

size_t ldns_struct_resolver::_nameserver_count

Number of nameservers in _nameservers.

Definition at line 63 of file resolver.h.

size_t* ldns_struct_resolver::_rtt

Round trip time; 0 -> infinity.

Unit: ms?

Definition at line 66 of file resolver.h.

bool ldns_struct_resolver::_recursive

Wether or not to be recursive.

Definition at line 69 of file resolver.h.

bool ldns_struct_resolver::_debug

Print debug information.

Definition at line 72 of file resolver.h.

ldns_rdf* ldns_struct_resolver::_domain

Default domain to add to non fully qualified domain names.

Definition at line 75 of file resolver.h.

ldns_rdf** ldns_struct_resolver::_searchlist

Searchlist array, add the names in this array if a query cannot be found.

Definition at line 78 of file resolver.h.

size_t ldns_struct_resolver::_searchlist_count

Number of entries in the searchlist array.

Definition at line 81 of file resolver.h.

uint8_t ldns_struct_resolver::_retry

Number of times to retry before giving up.

Definition at line 84 of file resolver.h.

uint8_t ldns_struct_resolver::_retrans

Time to wait before retrying.

Definition at line 86 of file resolver.h.

bool ldns_struct_resolver::_dnssec

Whether to do DNSSEC.

Definition at line 89 of file resolver.h.

bool ldns_struct_resolver::_dnssec_cd

Whether to set the CD bit on DNSSEC requests.

Definition at line 91 of file resolver.h.

bool ldns_struct_resolver::_usevc

Whether to use tcp or udp (tcp if the value is true).

Definition at line 93 of file resolver.h.

bool ldns_struct_resolver::_igntc

Whether to ignore the tc bit.

Definition at line 95 of file resolver.h.

uint8_t ldns_struct_resolver::_ip6

Whether to use ip6, 0->does not matter, 1 is IPv4, 2 is IPv6.

Definition at line 97 of file resolver.h.

bool ldns_struct_resolver::_defnames

If true append the default domain.

Definition at line 99 of file resolver.h.

bool ldns_struct_resolver::_dnsrch

If true apply the search list.

Definition at line 101 of file resolver.h.

struct timeval ldns_struct_resolver::_timeout [read]

Timeout for socket connections.

Definition at line 103 of file resolver.h.

bool ldns_struct_resolver::_fail

Only try the first nameserver, and return with an error directly if it fails.

Definition at line 105 of file resolver.h.

bool ldns_struct_resolver::_random

Randomly choose a nameserver.

Definition at line 107 of file resolver.h.

int ldns_struct_resolver::_socket

Keep some things to make AXFR possible.

Definition at line 109 of file resolver.h.

int ldns_struct_resolver::_axfr_soa_count

Count the number of LDNS_RR_TYPE_SOA RRs we have seen so far (the second one signifies the end of the AXFR).

Definition at line 113 of file resolver.h.

ldns_pkt* ldns_struct_resolver::_cur_axfr_pkt

Packet currently handled when doing part of an AXFR.

Definition at line 118 of file resolver.h.

uint16_t ldns_struct_resolver::_axfr_i

Counter for within the AXFR packets.

Definition at line 120 of file resolver.h.

uint16_t ldns_struct_resolver::_edns_udp_size

Definition at line 122 of file resolver.h.

char* ldns_struct_resolver::_tsig_keyname

Name of the key to use with TSIG, if _tsig_keyname and _tsig_keydata both contain values, outgoing messages are automatically signed with TSIG.

Definition at line 128 of file resolver.h.

char* ldns_struct_resolver::_tsig_keydata

Secret key data to use with TSIG, if _tsig_keyname and _tsig_keydata both contain values, outgoing messages are automatically signed with TSIG.

Definition at line 130 of file resolver.h.

char* ldns_struct_resolver::_tsig_algorithm

TSIG signing algorithm.

Definition at line 132 of file resolver.h.


Generated on Sat Dec 8 05:43:36 2007 for ldns by  doxygen 1.5.4