Added syslog and better FQDN handling

Added in logging to syslog and also handling the fact that a hostname is not an FQDN