I found a bug in DnsDigEndpoint class.
I cannot set the value of "dns.server" to null.
Map<String, Object> headers = exchange.getIn().getHeaders();
headers.put("dns.server", null);
//headers.put("dns.server",
ResolverConfig.getCurrentConfig().server());
headers.put("dns.class", "");
headers.put("dns.name", "www.example.com");
headers.put("dns.type", "TXT");
ProducerTemplate p = context.createProducerTemplate();
Exchange respExchange = p.send("dns://dig", exchange);
version: Apache camel 2.12.1
--
View this message in context:
http://camel.465427.n5.nabble.com/bug-dns-component-tp5740962.html
Sent from the Camel - Users mailing list archive at Nabble.com.