分类: LINUX
2014-08-18 17:08:36
原文地址:dns解析相关代码分析 作者:wahu0315210
CONFIG proxy.config.dns.splitDNS.enabled INT 0 |
struct DNSHandler: public Continuation |
if (dns_ns_rr) {//使用roundrobin |
SET_HANDLER(&DNSHandler::mainEvent); dnsProcessor.thread->schedule_every(this, DNS_PERIOD); |
recv_dns(event, e); |
inline Action * |
DNSEntry *e = dnsEntryAllocator.alloc(); |
SET_HANDLER((DNSEntryHandler) & DNSEntry::mainEvent); |
dnsH->entries.enqueue(this); |
IOCORE_ReadConfigInt32(gsplit_dns_enabled, "proxy.config.dns.splitDNS.enabled"); |
params->m_DNSSrvrTable = NEW(new DNS_table("proxy.config.dns.splitdns.filename", modulePrefix, &sdns_dest_tags)); |
typedef ControlMatcher<SplitDNSRecord, SplitDNSResult> DNS_table; |
Data *cur_d; |
DNSServer m_servers; |
struct DNSServer |
SplitDNSConfig::startup(); |
|