Patches for Partial rewrite of check_dns [sf#836008] [#254]