|
|||
|
|||
|
#include "socket.h"#include "hashcomp.h"Include dependency graph for dns.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | DNSResult |
| Result status, used internally. More... | |
| class | CachedQuery |
| Cached item stored in the query cache. More... | |
| class | Resolver |
| The Resolver class is a high-level abstraction for resolving DNS entries. More... | |
| class | DNS |
| DNS is a singleton class used by the core to dispatch dns requests to the dns server, and route incoming dns replies back to Resolver objects, based upon the request ID. More... | |
Typedefs | |
| typedef std::pair< unsigned char *, std::string > | DNSInfo |
| Information on a completed lookup, used internally. | |
| typedef nspace::hash_map< irc::string, CachedQuery, nspace::hash< irc::string > > | dnscache |
| DNS cache information. | |
Enumerations | |
| enum | ResolverError { RESOLVER_NOERROR = 0, RESOLVER_NSDOWN = 1, RESOLVER_NXDOMAIN = 2, RESOLVER_NOTREADY = 3, RESOLVER_BADIP = 4, RESOLVER_TIMEOUT = 5, RESLOVER_FORCEUNLOAD = 6 } |
| Error types that class Resolver can emit to its error method. More... | |
| enum | QueryType { DNS_QUERY_NONE = 0, DNS_QUERY_A = 1, DNS_QUERY_CNAME = 5, DNS_QUERY_PTR = 12, DNS_QUERY_AAAA = 28, DNS_QUERY_PTR4 = 0xFFFD, DNS_QUERY_PTR6 = 0xFFFE } |
| Query and resource record types. More... | |
| enum | ForceProtocol { PROTOCOL_IPV4 = 0, PROTOCOL_IPV6 = 1 } |
| Used internally to force PTR lookups to use a certain protocol scemantics, e.g. More... | |
Variables | |
| const QueryType | DNS_QUERY_FORWARD = DNS_QUERY_A |
| const QueryType | DNS_QUERY_REVERSE = DNS_QUERY_PTR |
|
|
DNS cache information. Holds IPs mapped to hostnames, and hostnames mapped to IPs. |
|
|
Information on a completed lookup, used internally.
|
|
|
Used internally to force PTR lookups to use a certain protocol scemantics, e.g. x.x.x.x.in-addr.arpa for v4, and *.ip6.arpa for v6. |
|
|
Query and resource record types.
|
|
|
Error types that class Resolver can emit to its error method.
|
|
|
|
|
|
|