From 453714fb8fcfdf0627a78e68113a8f874b56ac39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eystein=20M=C3=A5l=C3=B8y=20Stenberg?= Date: Wed, 16 Jan 2019 16:41:47 -0800 Subject: [PATCH] Clarify Host2IP return value on failure. https://cfengine.zendesk.com/agent/tickets/4220 (cherry picked from commit fde1d711d9b6943eb834875ff8dff25e8412407a) --- reference/functions/host2ip.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/reference/functions/host2ip.markdown b/reference/functions/host2ip.markdown index fdaeba870..31135cc19 100644 --- a/reference/functions/host2ip.markdown +++ b/reference/functions/host2ip.markdown @@ -8,6 +8,7 @@ tags: [reference, communication functions, functions, host2ip, cached function] [%CFEngine_function_prototype(hostname)%] **Description:** Returns the primary name-service IP address for the named host `hostname`. +If resolution fails, the input `hostname` is returned (for compatibility reasons). Uses whatever configured name service is used by the resolver library to translate `hostname` into an IP address. It will return an IPv6 address