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.
Except where otherwise stated, original content is © 2003-2016 LinuxInsight. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. Drupal® is a registered trademark of Dries Buytaert. Other marks are property of their respective owners. Comments are property and responsibility of their authors.