This file can be used to set the NIS/YP hostname in exactly the same way as the command hostname:
# echo "linux" > /proc/sys/kernel/hostname
However, NIS (Network Information Service) or YP (Yellow Pages) hostname are not to be confused with DNS (Domain Name System) hostname. These two host names are in general different.
For a detailed discussion see the hostname(1) man page.