GSK Reference Manual | ||||
---|---|---|---|---|
gskdnslocalresolvergskdnslocalresolver — a DNS resolver which uses just a local resource-record cache. |
GskDnsLocalResolverClass; GskDnsLocalResolver; GskDnsResolver* gsk_dns_local_resolver_new (GskDnsRRCache *rr_cache); enum GskDnsLocalResult; GskDnsLocalResult gsk_dns_local_resolver_answer (GskDnsRRCache *rr_cache, GskDnsQuestion *question, GskDnsMessage *results);
A DNS resolver which uses nothing more than a GskDnsRRCache. This can be used to provide a backend for a server.
typedef struct _GskDnsLocalResolverClass GskDnsLocalResolverClass;
Class for local DNS resolvers.
typedef struct _GskDnsLocalResolver GskDnsLocalResolver;
Instance for local DNS resolvers.
GskDnsResolver* gsk_dns_local_resolver_new (GskDnsRRCache *rr_cache);
Create a new local resolver based on an optional resource-record cache.
rr_cache : |
resource-record cache to use. |
Returns : | the newly allocated resolver. |
typedef enum { GSK_DNS_LOCAL_NO_DATA, GSK_DNS_LOCAL_PARTIAL_DATA, GSK_DNS_LOCAL_NEGATIVE, GSK_DNS_LOCAL_SUCCESS } GskDnsLocalResult;
Possible results from a local DNS query.
GskDnsLocalResult gsk_dns_local_resolver_answer (GskDnsRRCache *rr_cache, GskDnsQuestion *question, GskDnsMessage *results);
Attempt to compute an answer to a DNS question, using only information locally available in the resource-record cache.
rr_cache : |
resource-record cache to use to derive the answer to the question. |
question : |
question to answer. |
results : |
message to store results in. |
Returns : | the result of the query. |
resource-cache
" property"resource-cache" GskDnsRRCache : Read / Write
cache of resource data used to answer queries.