Patches for check_dns: added -o option to sort returned addresses [sf#1852201] [#865]