Patches for check_dns fix [sf#647959] [#148]