DNS/ToDo/caching resolver

From SambaWiki

It would be nice to add a resolver cache to the libcli/dns client library that the DNS server could use as well. This would reduce the number of queries sent out by the DNS server and would allow for a better standalone operation.