hostname command prints nothing a null value

Hi ,

On my box everything works fine. But whenever I run command

It returns nothing as you see @(none) too.

Its very strange issue I have never noticed on any other system yet.

Any one have any idea about this.

Thank you

system network restart

Thanks for your reply I found the solution and it was nothing with my setting it was due to the rpm package "net-tool". I just upgraded it using yum and it got fixed .

Also I found that file "/bin/hostname" was an empty file.

Thank you