Module: check_mk
Branch: master
Commit: 0b8f441a6072de76bfa4ed91f6082a3ab4667829
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0b8f441a6072de…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Fri Dec 29 14:45:02 2017 +0100
Revert "5526 FIX check_dns: Do not pass off the host's IP address as a default
DNS server address"
This reverts commit 59499b860504229fd3528712134823a92bc2d46a.
Change-Id: I0e8ea19a140b4bcae7a99cb2e9aae2567247868b
---
checks/check_dns | 2 ++
1 file changed, 2 insertions(+)
diff --git a/checks/check_dns b/checks/check_dns
index 2f5bbd2..743636f 100644
--- a/checks/check_dns
+++ b/checks/check_dns
@@ -31,6 +31,8 @@ def check_dns_arguments(params):
if "server" in settings:
if settings["server"] != None:
args += ' -s %s' % quote_shell_string(settings["server"])
+ else:
+ args += " -s '$HOSTADDRESS$'"
if "expected_address" in settings:
# Convert from old (str) to new (list of strings)