Flush the whole entry set in DNSJavaResolver

in order to make sure that no entries remain when we try to flush the
dnsjava cache.