Set hostname on ubuntu

Posted on 2012-08-22
Last Modified: 2012-08-22
I am installing PLESK and get the error:
Unable to determine the host or domain name of your computer.

Open in new window

A tutorial said to run the following commands for diagnostics.

root@lamp /tmp# uname -n
root@lamp /tmp# hostname -a

root@lamp /tmp# hostname -s
root@lamp /tmp# hostname -d
root@lamp /tmp# hostname -f
root@lamp /tmp# hostname

Open in new window

What's the next step.
Question by:M256
    1 Comment
    LVL 58

    Accepted Solution


    hostname your_host_name

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now