Use shared_ptr to manage references to DNS cache entries
Merge pull request #108 from Metaswitch/issue541

[Reviewer Ellie] Use shared_ptr to manage references to DNS cache entries