This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit b3e36ecda9db0696ed6545278689355abd4f44e6 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 15:02:04 2026 +0100 CAMEL-23832: camel-dns - improve the component and option descriptions Rewrites the component description, the dnsType path option and the 6 headers. The CamelDnsType and CamelDnsClass texts named the wrong package (org.xbill.dns) and now give the defaults and how lookup and dig differ on an unknown value; CamelDnsDomain says it uses the resolver of the JVM, not dnsjava. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-dns is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../org/apache/camel/catalog/components/dns.json | 16 +++---- .../apache/camel/catalog/docs/dns-component.adoc | 2 +- .../org/apache/camel/component/dns/dns.json | 16 +++---- .../camel-dns/src/main/docs/dns-component.adoc | 2 +- .../apache/camel/component/dns/DnsConstants.java | 30 ++++++++---- .../apache/camel/component/dns/DnsEndpoint.java | 12 ++--- .../component/ComponentsBuilderFactory.java | 3 +- .../component/dsl/DnsComponentBuilderFactory.java | 6 ++- .../builder/endpoint/EndpointHeaderBuilders.java | 3 +- .../builder/endpoint/StaticEndpointBuilders.java | 18 +++++-- .../endpoint/dsl/DnsEndpointBuilderFactory.java | 56 +++++++++++++++------- tasks/component-descriptions.md | 2 +- 12 files changed, 106 insertions(+), 60 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dns.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dns.json index de75ca9fd29d..3dfa97fb7123 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dns.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/dns.json @@ -3,7 +3,7 @@ "kind": "component", "name": "dns", "title": "DNS", - "description": "Perform DNS queries using DNSJava.", + "description": "Query DNS records and resolve host names to IP addresses, using the dnsjava library.", "deprecated": false, "firstVersion": "2.7.0", "label": "networking", @@ -28,19 +28,19 @@ "autowiredEnabled": { "index": 1, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching t [...] }, "headers": { - "CamelDnsClass": { "index": 0, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The DNS class of the lookup. Should match the values of org.xbill.dns.DClass. Optional.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_CLASS" }, - "CamelDnsName": { "index": 1, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": true, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name to lookup", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_NAME" }, - "CamelDnsDomain": { "index": 2, "kind": "header", "displayName": "", "group": "ip", "label": "ip", "required": true, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain name.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_DOMAIN" }, - "CamelDnsServer": { "index": 3, "kind": "header", "displayName": "", "group": "dig", "label": "dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The server in particular for the query. If none is given, the default one specified by the OS will be used. Optional.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_SERVER" }, - "CamelDnsType": { "index": 4, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The type of the lookup. Should match the values of org.xbill.dns.Type. Optional. The dig operation uses A when none or an unknown type is given.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_TYPE" }, - "CamelDnsTerm": { "index": 5, "kind": "header", "displayName": "", "group": "wikipedia", "label": "wikipedia", "required": true, "javaType": "", "deprecated": true, "deprecationNote": "The Wikipedia over DNS service is no longer available", "autowired": false, "secret": false, "description": "The term. Deprecation note: The Wikipedia over DNS service is no longer available", "constantName": "org.apache.camel.component.dns.DnsConstants#TERM" } + "CamelDnsClass": { "index": 0, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The DNS class to query, as a dnsjava DClass mnemonic such as IN (the default), CH or HS. The lookup operation fails on an unknown class, while dig uses IN instead.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_CLASS" }, + "CamelDnsName": { "index": 1, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": true, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain name to query. For lookup, a name without a trailing dot can also be tried with the search domains of the system, while dig always queries the name as an absolute name.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_NAME" }, + "CamelDnsDomain": { "index": 2, "kind": "header", "displayName": "", "group": "ip", "label": "ip", "required": true, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name to resolve to an IP address, with the resolver of the JVM (InetAddress.getByName). An IP address literal is returned as is.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_DOMAIN" }, + "CamelDnsServer": { "index": 3, "kind": "header", "displayName": "", "group": "dig", "label": "dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name or IP address of the DNS server to send the query to, on port 53. If not set, the first DNS server configured in the operating system is used.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_SERVER" }, + "CamelDnsType": { "index": 4, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The record type to query, as a dnsjava Type mnemonic such as A (the default), AAAA, MX or TXT. The lookup operation fails on an unknown type, while dig uses A instead.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_TYPE" }, + "CamelDnsTerm": { "index": 5, "kind": "header", "displayName": "", "group": "wikipedia", "label": "wikipedia", "required": true, "javaType": "", "deprecated": true, "deprecationNote": "The Wikipedia over DNS service is no longer available", "autowired": false, "secret": false, "description": "The search term, sent as a TXT query for the term followed by .wp.dg.cx. Deprecation note: The Wikipedia over DNS service is no longer available", "constantName": "org.apache.camel.component.dns [...] }, "bodyTypes": { "producerIn": { "carriers": [ "any" ], "description": "The body is not used: the name to query is in a header, CamelDnsDomain for ip, CamelDnsName for lookup and dig, and CamelDnsTerm for wikipedia" }, "producerOut": { "carriers": [ "unknown" ], "byOption": [ { "option": "dnsType", "value": "ip", "carriers": [ "pojo" ], "javaType": "java.net.InetAddress" }, { "option": "dnsType", "value": "lookup", "carriers": [ "list" ], "javaType": "org.xbill.DNS.Record[]" }, { "option": "dnsType", "value": "dig", "carriers": [ "pojo" ], "javaType": "org.xbill.DNS.Message" }, { "option": "dnsType", "value": "wikipedia", "carriers": [ "text", "null" ] } ], "description": "By the type: for ip the I [...] }, "properties": { - "dnsType": { "index": 0, "kind": "path", "displayName": "Dns Type", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.dns.DnsType", "enum": [ "dig", "ip", "lookup", "wikipedia" ], "deprecated": false, "autowired": false, "secret": false, "description": "The type of the lookup. The wikipedia type is deprecated, as the Wikipedia over DNS service it queries is no longer available." }, + "dnsType": { "index": 0, "kind": "path", "displayName": "Dns Type", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.dns.DnsType", "enum": [ "dig", "ip", "lookup", "wikipedia" ], "deprecated": false, "autowired": false, "secret": false, "description": "The operation to run: ip resolves the host name in the CamelDnsDomain header to an IP address with the resolver of the JVM; lookup runs a dnsjava lookup of the CamelDnsName hea [...] "lazyStartProducer": { "index": 1, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...] } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dns-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dns-component.adoc index fc38a0cbddb8..6dd079162959 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dns-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dns-component.adoc @@ -2,7 +2,7 @@ :doctitle: DNS :shortname: dns :artifactid: camel-dns -:description: Perform DNS queries using DNSJava. +:description: Query DNS records and resolve host names to IP addresses, using the dnsjava library. :since: 2.7 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-dns/src/generated/resources/META-INF/org/apache/camel/component/dns/dns.json b/components/camel-dns/src/generated/resources/META-INF/org/apache/camel/component/dns/dns.json index de75ca9fd29d..3dfa97fb7123 100644 --- a/components/camel-dns/src/generated/resources/META-INF/org/apache/camel/component/dns/dns.json +++ b/components/camel-dns/src/generated/resources/META-INF/org/apache/camel/component/dns/dns.json @@ -3,7 +3,7 @@ "kind": "component", "name": "dns", "title": "DNS", - "description": "Perform DNS queries using DNSJava.", + "description": "Query DNS records and resolve host names to IP addresses, using the dnsjava library.", "deprecated": false, "firstVersion": "2.7.0", "label": "networking", @@ -28,19 +28,19 @@ "autowiredEnabled": { "index": 1, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching t [...] }, "headers": { - "CamelDnsClass": { "index": 0, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The DNS class of the lookup. Should match the values of org.xbill.dns.DClass. Optional.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_CLASS" }, - "CamelDnsName": { "index": 1, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": true, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name to lookup", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_NAME" }, - "CamelDnsDomain": { "index": 2, "kind": "header", "displayName": "", "group": "ip", "label": "ip", "required": true, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain name.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_DOMAIN" }, - "CamelDnsServer": { "index": 3, "kind": "header", "displayName": "", "group": "dig", "label": "dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The server in particular for the query. If none is given, the default one specified by the OS will be used. Optional.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_SERVER" }, - "CamelDnsType": { "index": 4, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The type of the lookup. Should match the values of org.xbill.dns.Type. Optional. The dig operation uses A when none or an unknown type is given.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_TYPE" }, - "CamelDnsTerm": { "index": 5, "kind": "header", "displayName": "", "group": "wikipedia", "label": "wikipedia", "required": true, "javaType": "", "deprecated": true, "deprecationNote": "The Wikipedia over DNS service is no longer available", "autowired": false, "secret": false, "description": "The term. Deprecation note: The Wikipedia over DNS service is no longer available", "constantName": "org.apache.camel.component.dns.DnsConstants#TERM" } + "CamelDnsClass": { "index": 0, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The DNS class to query, as a dnsjava DClass mnemonic such as IN (the default), CH or HS. The lookup operation fails on an unknown class, while dig uses IN instead.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_CLASS" }, + "CamelDnsName": { "index": 1, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": true, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain name to query. For lookup, a name without a trailing dot can also be tried with the search domains of the system, while dig always queries the name as an absolute name.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_NAME" }, + "CamelDnsDomain": { "index": 2, "kind": "header", "displayName": "", "group": "ip", "label": "ip", "required": true, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name to resolve to an IP address, with the resolver of the JVM (InetAddress.getByName). An IP address literal is returned as is.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_DOMAIN" }, + "CamelDnsServer": { "index": 3, "kind": "header", "displayName": "", "group": "dig", "label": "dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name or IP address of the DNS server to send the query to, on port 53. If not set, the first DNS server configured in the operating system is used.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_SERVER" }, + "CamelDnsType": { "index": 4, "kind": "header", "displayName": "", "group": "lookup dig", "label": "lookup dig", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The record type to query, as a dnsjava Type mnemonic such as A (the default), AAAA, MX or TXT. The lookup operation fails on an unknown type, while dig uses A instead.", "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_TYPE" }, + "CamelDnsTerm": { "index": 5, "kind": "header", "displayName": "", "group": "wikipedia", "label": "wikipedia", "required": true, "javaType": "", "deprecated": true, "deprecationNote": "The Wikipedia over DNS service is no longer available", "autowired": false, "secret": false, "description": "The search term, sent as a TXT query for the term followed by .wp.dg.cx. Deprecation note: The Wikipedia over DNS service is no longer available", "constantName": "org.apache.camel.component.dns [...] }, "bodyTypes": { "producerIn": { "carriers": [ "any" ], "description": "The body is not used: the name to query is in a header, CamelDnsDomain for ip, CamelDnsName for lookup and dig, and CamelDnsTerm for wikipedia" }, "producerOut": { "carriers": [ "unknown" ], "byOption": [ { "option": "dnsType", "value": "ip", "carriers": [ "pojo" ], "javaType": "java.net.InetAddress" }, { "option": "dnsType", "value": "lookup", "carriers": [ "list" ], "javaType": "org.xbill.DNS.Record[]" }, { "option": "dnsType", "value": "dig", "carriers": [ "pojo" ], "javaType": "org.xbill.DNS.Message" }, { "option": "dnsType", "value": "wikipedia", "carriers": [ "text", "null" ] } ], "description": "By the type: for ip the I [...] }, "properties": { - "dnsType": { "index": 0, "kind": "path", "displayName": "Dns Type", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.dns.DnsType", "enum": [ "dig", "ip", "lookup", "wikipedia" ], "deprecated": false, "autowired": false, "secret": false, "description": "The type of the lookup. The wikipedia type is deprecated, as the Wikipedia over DNS service it queries is no longer available." }, + "dnsType": { "index": 0, "kind": "path", "displayName": "Dns Type", "group": "producer", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.dns.DnsType", "enum": [ "dig", "ip", "lookup", "wikipedia" ], "deprecated": false, "autowired": false, "secret": false, "description": "The operation to run: ip resolves the host name in the CamelDnsDomain header to an IP address with the resolver of the JVM; lookup runs a dnsjava lookup of the CamelDnsName hea [...] "lazyStartProducer": { "index": 1, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...] } } diff --git a/components/camel-dns/src/main/docs/dns-component.adoc b/components/camel-dns/src/main/docs/dns-component.adoc index fc38a0cbddb8..6dd079162959 100644 --- a/components/camel-dns/src/main/docs/dns-component.adoc +++ b/components/camel-dns/src/main/docs/dns-component.adoc @@ -2,7 +2,7 @@ :doctitle: DNS :shortname: dns :artifactid: camel-dns -:description: Perform DNS queries using DNSJava. +:description: Query DNS records and resolve host names to IP addresses, using the dnsjava library. :since: 2.7 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsConstants.java b/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsConstants.java index b38b4782757a..51448552ce4c 100644 --- a/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsConstants.java +++ b/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsConstants.java @@ -29,27 +29,39 @@ public class DnsConstants { @Deprecated public static final String OPERATION_WIKIPEDIA = DnsType.wikipedia.name(); - @Metadata(label = "lookup dig", description = "The DNS class of the lookup. Should match the values of\n" + - "`org.xbill.dns.DClass`. Optional.", + @Metadata(label = "lookup dig", + description = "The DNS class to query, as a dnsjava DClass mnemonic such as IN (the default), CH" + + " or HS. The lookup operation fails on an unknown class, while dig uses" + + " IN instead.", javaType = "String") public static final String DNS_CLASS = "CamelDnsClass"; - @Metadata(label = "lookup dig", description = "The name to lookup", javaType = "String", required = true) + @Metadata(label = "lookup dig", + description = "The domain name to query. For lookup, a name without a trailing dot can also be tried" + + " with the search domains of the system, while dig always queries the" + + " name as an absolute name.", + javaType = "String", required = true) public static final String DNS_NAME = "CamelDnsName"; - @Metadata(label = "ip", description = "The domain name.", javaType = "String", required = true) + @Metadata(label = "ip", description = "The host name to resolve to an IP address, with the resolver of the JVM" + + " (InetAddress.getByName). An IP address literal is returned as is.", + javaType = "String", required = true) public static final String DNS_DOMAIN = "CamelDnsDomain"; - @Metadata(label = "dig", description = "The server in particular for the query. If none is given, the default\n" + - "one specified by the OS will be used. Optional.", + @Metadata(label = "dig", description = "The host name or IP address of the DNS server to send the query to, on port 53." + + " If not set, the first DNS server configured in the operating system is" + + " used.", javaType = "String") public static final String DNS_SERVER = "CamelDnsServer"; - @Metadata(label = "lookup dig", description = "The type of the lookup. Should match the values of `org.xbill.dns.Type`.\n" + - "Optional. The dig operation uses A when none or an unknown type is given.", + @Metadata(label = "lookup dig", + description = "The record type to query, as a dnsjava Type mnemonic such as A (the default), AAAA," + + " MX or TXT. The lookup operation fails on an unknown type, while dig" + + " uses A instead.", javaType = "String") public static final String DNS_TYPE = "CamelDnsType"; /** * @deprecated the Wikipedia over DNS service is no longer available */ @Deprecated - @Metadata(label = "wikipedia", description = "The term", required = true, + @Metadata(label = "wikipedia", description = "The search term, sent as a TXT query for the term followed by .wp.dg.cx.", + required = true, deprecationNote = "The Wikipedia over DNS service is no longer available") public static final String TERM = "CamelDnsTerm"; diff --git a/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsEndpoint.java b/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsEndpoint.java index 6af5b1e99c72..35ff6ffc8669 100644 --- a/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsEndpoint.java +++ b/components/camel-dns/src/main/java/org/apache/camel/component/dns/DnsEndpoint.java @@ -30,7 +30,7 @@ import org.apache.camel.spi.UriPath; import org.apache.camel.support.DefaultEndpoint; /** - * Perform DNS queries using DNSJava. + * Query DNS records and resolve host names to IP addresses, using the dnsjava library. */ @UriEndpoint(firstVersion = "2.7.0", scheme = "dns", title = "DNS", syntax = "dns:dnsType", producerOnly = true, category = { Category.NETWORKING }, headersClass = DnsConstants.class) @@ -53,7 +53,11 @@ import org.apache.camel.support.DefaultEndpoint; + " Message; for wikipedia the text of the first TXT record, or no body")) public class DnsEndpoint extends DefaultEndpoint { - @UriPath + @UriPath(description = "The operation to run: ip resolves the host name in the CamelDnsDomain header to an IP address" + + " with the resolver of the JVM; lookup runs a dnsjava lookup of the CamelDnsName header and" + + " returns the records of the answer; dig sends one query for the CamelDnsName header to a DNS" + + " server and returns the whole response. The wikipedia type is deprecated, as the Wikipedia" + + " over DNS service it queries is no longer available.") @Metadata(required = true) private DnsType dnsType; @@ -86,10 +90,6 @@ public class DnsEndpoint extends DefaultEndpoint { return dnsType; } - /** - * The type of the lookup. The wikipedia type is deprecated, as the Wikipedia over DNS service it queries is no - * longer available. - */ public void setDnsType(DnsType dnsType) { this.dnsType = dnsType; } diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 3f1ecaa46e4c..1b1afba6d841 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -1652,7 +1652,8 @@ public interface ComponentsBuilderFactory { } /** * DNS (camel-dns) - * Perform DNS queries using DNSJava. + * Query DNS records and resolve host names to IP addresses, using the + * dnsjava library. * * Category: networking * Since: 2.7 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DnsComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DnsComponentBuilderFactory.java index 7ccbd075f3aa..81f98089d28e 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DnsComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/DnsComponentBuilderFactory.java @@ -24,7 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.dns.DnsComponent; /** - * Perform DNS queries using DNSJava. + * Query DNS records and resolve host names to IP addresses, using the dnsjava + * library. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,7 +34,8 @@ public interface DnsComponentBuilderFactory { /** * DNS (camel-dns) - * Perform DNS queries using DNSJava. + * Query DNS records and resolve host names to IP addresses, using the + * dnsjava library. * * Category: networking * Since: 2.7 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java index e7798db6fd78..b1abcf761703 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java @@ -1283,7 +1283,8 @@ public class EndpointHeaderBuilders { } /** * DNS (camel-dns) - * Perform DNS queries using DNSJava. + * Query DNS records and resolve host names to IP addresses, using the + * dnsjava library. * * Category: networking * Since: 2.7 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index c30b64beed47..ed6d323f0220 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -5415,7 +5415,8 @@ public class StaticEndpointBuilders { } /** * DNS (camel-dns) - * Perform DNS queries using DNSJava. + * Query DNS records and resolve host names to IP addresses, using the + * dnsjava library. * * Category: networking * Since: 2.7 @@ -5424,7 +5425,11 @@ public class StaticEndpointBuilders { * Syntax: <code>dns:dnsType</code> * * Path parameter: dnsType (required) - * The type of the lookup. The wikipedia type is deprecated, as the + * The operation to run: ip resolves the host name in the CamelDnsDomain + * header to an IP address with the resolver of the JVM; lookup runs a + * dnsjava lookup of the CamelDnsName header and returns the records of the + * answer; dig sends one query for the CamelDnsName header to a DNS server + * and returns the whole response. The wikipedia type is deprecated, as the * Wikipedia over DNS service it queries is no longer available. * There are 4 enums and the value can be one of: dig, ip, lookup, wikipedia * @@ -5436,7 +5441,8 @@ public class StaticEndpointBuilders { } /** * DNS (camel-dns) - * Perform DNS queries using DNSJava. + * Query DNS records and resolve host names to IP addresses, using the + * dnsjava library. * * Category: networking * Since: 2.7 @@ -5445,7 +5451,11 @@ public class StaticEndpointBuilders { * Syntax: <code>dns:dnsType</code> * * Path parameter: dnsType (required) - * The type of the lookup. The wikipedia type is deprecated, as the + * The operation to run: ip resolves the host name in the CamelDnsDomain + * header to an IP address with the resolver of the JVM; lookup runs a + * dnsjava lookup of the CamelDnsName header and returns the records of the + * answer; dig sends one query for the CamelDnsName header to a DNS server + * and returns the whole response. The wikipedia type is deprecated, as the * Wikipedia over DNS service it queries is no longer available. * There are 4 enums and the value can be one of: dig, ip, lookup, wikipedia * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DnsEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DnsEndpointBuilderFactory.java index c7e0d1e7ba97..84d7addddea1 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DnsEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DnsEndpointBuilderFactory.java @@ -27,7 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Perform DNS queries using DNSJava. + * Query DNS records and resolve host names to IP addresses, using the dnsjava + * library. * * Generated by camel build tools - do NOT edit this file! */ @@ -107,7 +108,8 @@ public interface DnsEndpointBuilderFactory { public interface DnsBuilders { /** * DNS (camel-dns) - * Perform DNS queries using DNSJava. + * Query DNS records and resolve host names to IP addresses, using the + * dnsjava library. * * Category: networking * Since: 2.7 @@ -120,7 +122,8 @@ public interface DnsEndpointBuilderFactory { } /** * DNS (camel-dns) - * Perform DNS queries using DNSJava. + * Query DNS records and resolve host names to IP addresses, using the + * dnsjava library. * * Category: networking * Since: 2.7 @@ -129,8 +132,13 @@ public interface DnsEndpointBuilderFactory { * Syntax: <code>dns:dnsType</code> * * Path parameter: dnsType (required) - * The type of the lookup. The wikipedia type is deprecated, as the - * Wikipedia over DNS service it queries is no longer available. + * The operation to run: ip resolves the host name in the CamelDnsDomain + * header to an IP address with the resolver of the JVM; lookup runs a + * dnsjava lookup of the CamelDnsName header and returns the records of + * the answer; dig sends one query for the CamelDnsName header to a DNS + * server and returns the whole response. The wikipedia type is + * deprecated, as the Wikipedia over DNS service it queries is no longer + * available. * There are 4 enums and the value can be one of: dig, ip, lookup, * wikipedia * @@ -142,7 +150,8 @@ public interface DnsEndpointBuilderFactory { } /** * DNS (camel-dns) - * Perform DNS queries using DNSJava. + * Query DNS records and resolve host names to IP addresses, using the + * dnsjava library. * * Category: networking * Since: 2.7 @@ -151,8 +160,13 @@ public interface DnsEndpointBuilderFactory { * Syntax: <code>dns:dnsType</code> * * Path parameter: dnsType (required) - * The type of the lookup. The wikipedia type is deprecated, as the - * Wikipedia over DNS service it queries is no longer available. + * The operation to run: ip resolves the host name in the CamelDnsDomain + * header to an IP address with the resolver of the JVM; lookup runs a + * dnsjava lookup of the CamelDnsName header and returns the records of + * the answer; dig sends one query for the CamelDnsName header to a DNS + * server and returns the whole response. The wikipedia type is + * deprecated, as the Wikipedia over DNS service it queries is no longer + * available. * There are 4 enums and the value can be one of: dig, ip, lookup, * wikipedia * @@ -177,8 +191,9 @@ public interface DnsEndpointBuilderFactory { public static final DnsHeaderNameBuilder INSTANCE = new DnsHeaderNameBuilder(); /** - * The DNS class of the lookup. Should match the values of - * org.xbill.dns.DClass. Optional. + * The DNS class to query, as a dnsjava DClass mnemonic such as IN (the + * default), CH or HS. The lookup operation fails on an unknown class, + * while dig uses IN instead. * * The option is a: {@code String} type. * @@ -190,7 +205,9 @@ public interface DnsEndpointBuilderFactory { return "CamelDnsClass"; } /** - * The name to lookup. + * The domain name to query. For lookup, a name without a trailing dot + * can also be tried with the search domains of the system, while dig + * always queries the name as an absolute name. * * The option is a: {@code String} type. * @@ -203,7 +220,8 @@ public interface DnsEndpointBuilderFactory { return "CamelDnsName"; } /** - * The domain name. + * The host name to resolve to an IP address, with the resolver of the + * JVM (InetAddress.getByName). An IP address literal is returned as is. * * The option is a: {@code String} type. * @@ -216,8 +234,9 @@ public interface DnsEndpointBuilderFactory { return "CamelDnsDomain"; } /** - * The server in particular for the query. If none is given, the default - * one specified by the OS will be used. Optional. + * The host name or IP address of the DNS server to send the query to, + * on port 53. If not set, the first DNS server configured in the + * operating system is used. * * The option is a: {@code String} type. * @@ -229,9 +248,9 @@ public interface DnsEndpointBuilderFactory { return "CamelDnsServer"; } /** - * The type of the lookup. Should match the values of - * org.xbill.dns.Type. Optional. The dig operation uses A when none or - * an unknown type is given. + * The record type to query, as a dnsjava Type mnemonic such as A (the + * default), AAAA, MX or TXT. The lookup operation fails on an unknown + * type, while dig uses A instead. * * The option is a: {@code String} type. * @@ -243,7 +262,8 @@ public interface DnsEndpointBuilderFactory { return "CamelDnsType"; } /** - * The term. Deprecation note: The Wikipedia over DNS service is no + * The search term, sent as a TXT query for the term followed by + * .wp.dg.cx. Deprecation note: The Wikipedia over DNS service is no * longer available. * * The option is a: {@code } type. diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index 398d42afb074..15612387cec1 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -159,7 +159,7 @@ or removes its row. | camel-direct | direct | | | camel-disruptor | disruptor, disruptor-vm | | | camel-djl | djl | | -| camel-dns | dns | | +| camel-dns | dns | yes | | camel-docker | docker | | | camel-docling | docling | | | camel-drill | drill | |
