diff options
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index b0e87ac4e..1369c7da1 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -1465,8 +1465,11 @@ configure_nameservers(int force) evdns_clear_nameservers_and_suspend(); } log_info(LD_EXIT, "Parsing resolver configuration in '%s'", conf_fname); - if (evdns_resolv_conf_parse(DNS_OPTIONS_ALL, conf_fname)) + if (evdns_resolv_conf_parse(DNS_OPTIONS_ALL, conf_fname)) { + log_warn(LD_EXIT, "Unable to parse '%s', or no nameservers in '%s'", + conf_fname, conf_fname); return -1; + } if (evdns_count_nameservers() == 0) { log_warn(LD_EXIT, "Unable to find any nameservers in '%s'.", conf_fname); return -1; |