On a CentOS 7 Linux system, I could issue the command
hostname
and see the name for the system displayed.
# hostname moonpoint
Yet, if I tried entering any option for the command, I received the error message "Name or service not known".
# hostname -a hostname: Name or service not known # hostname -i hostname: Name or service not known # hostname -f hostname: Name or service not known # hostname --fqdn hostname: Name or service not known
[ More Info ]