Add support to dnsHelper for handling the hosts file

Add two new functions CheckHostsEntry and AddHostsEntry