/*
- * $Id: cache_cf.cc,v 1.169 1997/01/31 22:30:29 wessels Exp $
+ * $Id: cache_cf.cc,v 1.170 1997/02/06 18:02:08 wessels Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
else if (!strcmp(token, "dns_children"))
parseIntegerValue(&Config.dnsChildren);
+ else if (!strcmp(token, "dns_defnames"))
+ parseOnOff(&Config.Options.res_defnames);
else if (!strcmp(token, "redirect_program"))
parsePathname(&Config.Program.redirect);
/*
- * $Id: dns.cc,v 1.28 1996/12/04 18:22:47 wessels Exp $
+ * $Id: dns.cc,v 1.29 1997/02/06 18:02:10 wessels Exp $
*
* DEBUG: section 34 Dnsserver interface
* AUTHOR: Harvest Derived
fclose(debug_log);
close(fd);
close(cfd);
- execlp(command, "(dnsserver)", NULL);
+ if (Config.Options.res_defnames)
+ execlp(command, "(dnsserver)", "-D", NULL);
+ else
+ execlp(command, "(dnsserver)", NULL);
debug(50, 0, "dnsOpenServer: %s: %s\n", command, xstrerror());
_exit(1);
return 0;
/*
- * $Id: dnsserver.cc,v 1.31 1997/01/02 07:20:28 wessels Exp $
+ * $Id: dnsserver.cc,v 1.32 1997/02/06 18:02:10 wessels Exp $
*
* DEBUG: section 0 DNS Resolver
* AUTHOR: Harvest Derived
#endif
#endif
- while ((c = getopt(argc, argv, "vhd")) != -1) {
+ while ((c = getopt(argc, argv, "vhdD")) != -1) {
switch (c) {
case 'v':
printf("dnsserver version %s\n", SQUID_VERSION);
if (!logfile)
fprintf(stderr, "Could not open dnsserver's log file\n");
break;
+ case 'D':
+#ifdef RES_DEFNAMES
+ _res.options |= RES_DEFNAMES;
+#endif
+ break;
case 'h':
default:
fprintf(stderr, "usage: dnsserver -hvd\n");