This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 4f88a6946ad29641f0a356da0a1bb9bbeaca940e Author: Andrea Cosentino <[email protected]> AuthorDate: Mon Apr 26 11:12:58 2021 +0200 Added DNS IP Action Kamelet --- dns-ip-action.kamelet.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dns-ip-action.kamelet.yaml b/dns-ip-action.kamelet.yaml index 05f9347..f9b1f41 100644 --- a/dns-ip-action.kamelet.yaml +++ b/dns-ip-action.kamelet.yaml @@ -16,6 +16,8 @@ spec: The Kamelet expects the following headers to be set: - `domain` / `ce-domain`: as the domain for which we are looking for the IP + + If the header won't be set the body will be used as domain to look for. flow: from: uri: "kamelet:source" @@ -32,6 +34,11 @@ spec: - set-header: name: dns.domain simple: "${header[ce-domain]}" + otherwise: + steps: + - set-header: + name: dns.domain + simple: "${body}" - to: uri: "dns:ip" - convert-body-to:
