I have tried both.<div>- Changing HOSTNAME in <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">/etc/sysconfig/network doesn't work</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">- "hostname"command just temporary changes the name</span></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8">