[syslog-ng] [PATCH] [cfg] make dns_cache_hosts default to /etc/hosts

balint.kovacs at balabit.com balint.kovacs at balabit.com
Fri Aug 24 14:43:53 CEST 2012


From: Balint Kovacs <balint.kovacs at balabit.com>

The default for dns_cache_hosts was empty until now,
which resulted in use_dns(persist_only) not to work
out-of-the box until the user set the dns_cache_hosts
to a sane value. This should make the configuration
more intuitive in most use-cases.

Signed-off-by: Balint Kovacs <blint at balabit.hu>
---
 lib/cfg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/cfg.c b/lib/cfg.c
index ed4cedf..8ba22df 100644
--- a/lib/cfg.c
+++ b/lib/cfg.c
@@ -315,6 +315,7 @@ cfg_new(gint version)
   self->dns_cache_size = 1007;
   self->dns_cache_expire = 3600;
   self->dns_cache_expire_failed = 60;
+  self->dns_cache_hosts = "/etc/hosts";
   self->threaded = FALSE;
   
   log_template_options_defaults(&self->template_options);
-- 
1.7.0.4




More information about the syslog-ng mailing list