aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/dns.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-10 13:08:40 +0100
committerGitHub <noreply@github.com>2018-08-10 13:08:40 +0100
commitcf2ada2755c4c71f89b43c9206f18632ff3ba984 (patch)
treef46c9c875ac08fbf61df9bf26cf0793f0aec0d43 /src/libserver/dns.c
parent0646d5791609b74d9b64cc4d0842c44f6b48f92e (diff)
parent4d471ea9ce1d23e33310ac887fe8a96d345aa8c6 (diff)
downloadrspamd-cf2ada2755c4c71f89b43c9206f18632ff3ba984.tar.gz
rspamd-cf2ada2755c4c71f89b43c9206f18632ff3ba984.zip
Merge pull request #2412 from negram/add-record-type-to-log
[Minor] Add record type into log when set up fake records
Diffstat (limited to 'src/libserver/dns.c')
-rw-r--r--src/libserver/dns.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/dns.c b/src/libserver/dns.c
index 81b01c49b..372ac28b7 100644
--- a/src/libserver/dns.c
+++ b/src/libserver/dns.c
@@ -439,8 +439,8 @@ rspamd_dns_resolver_config_ucl (struct rspamd_config *cfg,
case RDNS_REQUEST_SRV:
default:
msg_err_config ("invalid or unsupported reply element "
- "for fake DNS record %s: %s",
- name, str_rep);
+ "for fake DNS record %s(%s): %s",
+ name, rdns_str_from_type (rtype), str_rep);
free (rep);
break;
}
@@ -449,7 +449,7 @@ rspamd_dns_resolver_config_ucl (struct rspamd_config *cfg,
ucl_object_iterate_free (rep_it);
if (replies) {
- msg_info_config ("added fake record: %s", name);
+ msg_info_config ("added fake record: %s(%s)", name, rdns_str_from_type (rtype));
rdns_resolver_set_fake_reply (dns_resolver->r,
name, rtype, rcode, replies);
}
@@ -464,7 +464,7 @@ rspamd_dns_resolver_config_ucl (struct rspamd_config *cfg,
if (replies_obj) {
msg_warn_config ("replies are set for non-successful return "
- "code for %s, they will be ignored", name);
+ "code for %s(%s), they will be ignored", name, rdns_str_from_type (rtype));
}
rdns_resolver_set_fake_reply (dns_resolver->r,