Closed zhfish closed 10 years ago
全局默认转发到114需要修改部分代码来实现,如。
if (mbuf->qtimes > (MAX_TRY_TIMES - 3)) { fill_extra_addr(ip); return 0; }
if (g_nameservers[0] == NULL) { assert(g_nameservers[1] == NULL); g_nameservers[0] = strdup("8.8.8.8"); g_nameservers[1] = strdup("8.8.4.4"); } if (g_nameservers[1] == NULL) { if (strcmp(g_nameservers[0], "8.8.8.8") == 0) { g_nameservers[1] = strdup("8.8.4.4"); } else { g_nameservers[1] = strdup("8.8.8.8"); } }
大概需求 全局默认走114 一部分国外域名走opendns 内网的域名走内网的dns服务器