1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Hostname

Discussion in 'Plesk for Linux - 8.x and Older' started by VengfulSquirrel, Apr 10, 2006.

  1. VengfulSquirrel

    VengfulSquirrel Guest

    0
     
    This could be more of a linux question than a plesk question but I keep getting this error when trying to upgrade plesk 7.5.4 to plesk 8.0 in suse 9.3. Does my host name have to be tied to a valid ip address? Right now I am trying to use 192.168.1.35. And I can ping my host name so I don't see how it could not be resolved... What am I doing wrong?

    Unable to resolve host name.
    Please specify the host name in the /etc/hosts file
    or specify DNS configuration in the /etc/resolv.conf file on your system.

    -Ian
     
  2. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    What are the contents of your /etc/hosts and /etc/resolve.conf files?
     
  3. VengfulSquirrel

    VengfulSquirrel Guest

    0
     
    Code:
    www:/usr/local/psa # cat /etc/hosts
    127.0.0.1       localhost
    192.168.1.35 www localdomain
    www:/usr/local/psa # cat /etc/resolv.conf
    domain localdomain
    nameserver ***.***.***.***
    nameserver ***.***.***.***
    www:/usr/local/psa #
    
    OR

    Code:
    www:~ # cat /etc/hosts /etc/resolv.conf
    127.0.0.1       localhost
    192.168.1.35 [url]www.localdomain[/url] localdomain
    domain localdomain
    nameserver ***.***.***.***
    nameserver ***.***.***.***
    www:~ #
    
    I *'ed out the dns servers because I am illogically paranoid. Does the host name need to be resolved through strictly the dns servers?
     
  4. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    Here's how they should be. Keep in mind that a host name is not a www

    /etc/hosts
    _____________________________________
    127.0.0.1 localhost.localdomain localhost
    192.168.1.35 host.mydomainname.com host
    _____________________________________

    /etc/resolve.conf
    _____________________________________
    nameserver ***.***.***.**1
    nameserver ***.***.***.**2
    _____________________________________

    Then a dns "A" entry should be made for host.mydomainname.com

    host.mydomainname.com A 192.168.1.35
     
Loading...