PDA

View Full Version : Hostname


VengfulSquirrel
10th April 2006, 05:05 PM
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

phoenixisp
11th April 2006, 07:00 AM
What are the contents of your /etc/hosts and /etc/resolve.conf files?

VengfulSquirrel
11th April 2006, 07:37 PM
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


www:~ # cat /etc/hosts /etc/resolv.conf
127.0.0.1 localhost
192.168.1.35 www.localdomain 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?

phoenixisp
11th April 2006, 07:59 PM
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