• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue - localhost doesn't resolve

crnunez

Regular Pleskian
Hello;
What is the solution for this terrible issue with localhost?

Thanks in advance.

CentOS 5.2
Plesk 9.0
 
Check, please, the file /etc/hosts and make sure you have the following line added there:
# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain
 
Hi,
I have this config after the upgrade:
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1 localhost6.localdomain6 localhost6
127.0.0.1 localhost.localdomain localhost

Do you have any suggest?

Thanks!
 
Hi,
I have this config after the upgrade:
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1 localhost6.localdomain6 localhost6
127.0.0.1 localhost.localdomain localhost

Do you have any suggest?

Thanks!

P.D.:

[root@ns ~]$ nslookup localhost
Server: 174.AAA.173.CC (A & C are numbers...)
Address: 174.AAA.173.CC#53

** server can't find localhost: NXDOMAIN
 
localhost should not resolve actually.

why do you need this? what is the initial problem?
 
Back
Top