Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

At first my hostname was localhost.localdomain in CentOS 6.2

I installed ubuntu in separate partition after that my hostname was changed to this ###-###-###-###-####.####.example.com

In /etc/sysconfig/network of CentOS it shows hostname as

NETWORKING=yes

HOSTNAME=localhost.localdomain

But while running env command it showing hostname as HOSTNAME=###-###-###-###-####.####.example.com

now what should I do to change my hostname to localhost.localdomain

share|improve this question
    
See the hostname command. –  Daniel Andersson Aug 9 '12 at 15:57
    
now its working fine I edited hostname in ubuntu and After restarting here(CentOS) also its changed, now while running hostname command its showing the output as localhost.localdomain –  max Aug 10 '12 at 12:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.