Removes the dns_testnames squid.conf option and all related code.
Obsoletes -D command line option which existed only for the purpose of
turning dns_testnames off. Scheduled for absolute removal in Squid
3.2. But should be assumed as non-existing from 3.1 onwards.
<p>\r
<descrip>\r
\r
+ <tag>dns_testnames</tag>\r
+ <p>Obsolete. This feature is no longer relevant to modern networks and causes boot problems.</p>\r
+\r
</descrip>\r
\r
\r
definitions.
DOC_END
-NAME: dns_testnames
-TYPE: wordlist
-LOC: Config.dns_testname_list
-DEFAULT: none
-DEFAULT_IF_NONE: netscape.com internic.net nlanr.net microsoft.com
-DOC_START
- The DNS tests exit as soon as the first site is successfully looked up
-
- This test can be disabled with the -D command line option.
-DOC_END
-
NAME: append_domain
TYPE: string
LOC: Config.appendDomain
extern int neighbors_do_private_keys; /* 1 */
extern int opt_catch_signals; /* 1 */
extern int opt_debug_stderr; /* -1 */
- extern int opt_dns_tests; /* 1 */
extern int opt_foreground_rebuild; /* 0 */
extern char *opt_forwarded_for; /* NULL */
extern int opt_reload_hit_only; /* 0 */
#endif
static IPH ipcacheHandleCnameRecurse;
static int ipcacheExpiredEntry(ipcache_entry *);
-static int ipcache_testname(void);
#if USE_DNSSERVERS
static int ipcacheParse(ipcache_entry *, const char *buf);
#else
extern int _dns_ttl_;
#endif
-/// \ingroup IPCacheInternal
-static int
-ipcache_testname(void)
-{
- wordlist *w = NULL;
- debugs(14, 1, "Performing DNS Tests...");
-
- if ((w = Config.dns_testname_list) == NULL)
- return 1;
-
- for (; w; w = w->next) {
- if (gethostbyname(w->key) != NULL)
- return 1;
- }
-
- return 0;
-}
-
/**
\ingroup IPCacheInternal
*
ipcache_init(void)
{
int n;
- debugs(14, 3, "Initializing IP Cache...");
+ debugs(14, DBG_IMPORTANT, "Initializing IP Cache...");
memset(&IpcacheStats, '\0', sizeof(IpcacheStats));
memset(&lru_list, '\0', sizeof(lru_list));
- /* test naming lookup */
-
- if (!opt_dns_tests) {
- debugs(14, 4, "ipcache_init: Skipping DNS name lookup tests.");
- } else if (!ipcache_testname()) {
- fatal("ipcache_init: DNS name lookup tests failed.");
- } else {
- debugs(14, 1, "Successful DNS name lookup tests...");
- }
-
memset(&static_addrs, '\0', sizeof(ipcache_addrs));
static_addrs.in_addrs = (IPAddress *)xcalloc(1, sizeof(IPAddress));
{
fprintf(stderr,
#if USE_WIN32_SERVICE
- "Usage: %s [-cdhirvzCDFNRVYX] [-s | -l facility] [-f config-file] [-[au] port] [-k signal] [-n name] [-O CommandLine]\n"
+ "Usage: %s [-cdhirvzCFNRVYX] [-s | -l facility] [-f config-file] [-[au] port] [-k signal] [-n name] [-O CommandLine]\n"
#else
- "Usage: %s [-cdhvzCDFNRVYX] [-s | -l facility] [-f config-file] [-[au] port] [-k signal]\n"
+ "Usage: %s [-cdhvzCFNRVYX] [-s | -l facility] [-f config-file] [-[au] port] [-k signal]\n"
#endif
" -a port Specify HTTP port number (default: %d).\n"
" -d level Write debugging to stderr also.\n"
" -v Print version.\n"
" -z Create swap directories\n"
" -C Do not catch fatal signals.\n"
- " -D Disable initial DNS tests.\n"
+ " -D OBSOLETE. Scheduled for removal.\n"
" -F Don't serve any requests until store is rebuilt.\n"
" -N No daemon mode.\n"
#if USE_WIN32_SERVICE
case 'D':
/** \par D
- * Unset/disable global option for optional DNS tests. opt_dns_tests */
- opt_dns_tests = 0;
+ * OBSOLETE: WAS: override to prevent optional startup DNS tests. */
+ debugs(1,DBG_CRITICAL, "WARNING: -D command-line option is obsolete.");
break;
case 'F':
size_t udpMaxHitObjsz;
wordlist *hierarchy_stoplist;
wordlist *mcast_group_list;
- wordlist *dns_testname_list;
wordlist *dns_nameservers;
peer *peers;
int npeers;