Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
DNSAvailable as of Camel 2.7 This is an additional component for Camel to run DNS queries, using DNSJava. The component is a thin layer on top of DNSJava.
Requires SUN JVM The DNSJava library requires running on the SUN JVM. Maven users will need to add the following dependency to their <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-dns</artifactId> <version>x.x.x</version> <!-- use the same version as your Camel core version --> </dependency> URI formatThe URI scheme for a DNS component is as follows dns://operation[?options] This component only supports producers. OptionsNone. Headers
ExamplesIP lookup<route id="IPCheck"> <from uri="direct:start"/> <to uri="dns:ip"/> </route> This looks up a domain's IP. For example, www.example.com resolves to 192.0.32.10. DNS lookup<route id="IPCheck"> <from uri="direct:start"/> <to uri="dns:lookup"/> </route> This returns a set of DNS records associated with a domain. DNS DigDig is a Unix command-line utility to run DNS queries. <route id="IPCheck"> <from uri="direct:start"/> <to uri="dns:dig"/> </route> The query must be provided in the header with key |