hostname
From NetBSD Wiki
hostname(1) sets or prints the name of the current host system.
# hostname rsync # hostname ftp.de.netbsd.org # hostname ftp
hostname(1) sets or prints the name of the current host system.
# hostname rsync # hostname ftp.de.netbsd.org # hostname ftp