Patches for check_dns: sort address data [sf#1724052] [#863]