$fqdn is not present in all server, better use $hostname