System hostname IP Address is 127.0.0.1

Logging into a freshly installed VPS (KVM) and after installing Virtualmin I noticed the IP address that appears next to the host name is not the dedicated IP address of the server but 127.0.0.1.

System Information > System | System hostname vps.example.com (127.0.0.1)

This is the first time I am seeing this and the closest thing I’ve found here is this past topic:
https://www.virtualmin.com/node/25210

As per that discussion, I added the server IP address to /etc/hosts but that didn’t make any difference.

Is this something that I should be worried about? I mean, is this a misconfiguration?

Howdy,

Hmm, what are the contents of your /etc/hosts file now?

I suspect you may have corrected it, and that Virtualmin just isn’t reflecting that change yet. But verifying the contents of your /etc/hosts file should help.

-Eric

Thank you, Eric.

These are the contents of my hosts file now:

# cat /etc/hosts 127.0.0.1 localhost vps.example.com localhost4 localhost4.localdomain4 ::1 localhost vps.example.com localhost6 localhost6.localdomain6 93.184.216.119 vps.example.com
  • replaced my server’s IP address with 93.184.216.119 before pasting the contents of the file here.