The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-12-2008
sumitpandya sumitpandya is offline
Registered User
  
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 125
domainname command

domainname without any argument will display current domain-name of your system. domainname new-domain-name will set domain-name to argument "new-domain-name".

also you can get and set from procfs /proc/sys/kernel/domainname
above write-up is applicable for hostname as well!!!