DNS Filter spec should always mock the call to the resolv library Fix: #1875

Fixes #1878