Available 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.
The component offers the following operations:
- ip, to resolve a domain by its ip
- lookup, to lookup information about the domain
- dig, to run DNS queries
Maven users will need to add the following dependency to their
pom.xml for this component:
The URI scheme for a DNS component is as follows
This component only supports producers.
The domain name. Mandatory.
The name to lookup. Mandatory.
The type of the lookup. Should match the values of
The DNS class of the lookup. Should match the values of
The query itself. Mandatory.
The server in particular for the query. If none is given, the default one specified by the OS will be used. Optional.
This looks up a domain's IP. For example, www.example.com resolves to 18.104.22.168.
The IP address to lookup must be provided in the header with key
This returns a set of DNS records associated with a domain.
The name to lookup must be provided in the header with key
Dig is a Unix command-line utility to run DNS queries.
The query must be provided in the header with key