Hi What is the purpose of setting the server to null?
If its indeed a bug then you are welcome to log a JIRA and you are welcome to work on a patch. We love contributions, you can see more here http://camel.apache.org/contributing.html On Sun, Oct 6, 2013 at 3:38 PM, kuro <962...@gmail.com> wrote: > 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. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen