Refs #2119 Some fixes on IP resolving

- added a extraction of shortname from fqdn
- method HOSTS: getent hosts shortname
- method FQDN: getent hosts fqdn