Help configuring host adresses

Hello,

I have two servers under Debian 5 and I noticed that they don't have the same settings for host adresses. Can you tell me witch one is the good one :

For server 1 : hostname is serv01ev.euro-vote.com and I have (in Webmin > Networking > Network configuration > Host addresses) : 127.0.0.1 : localhost.localdomain , localhost , serv01ev.euro-vote.com 95.... (IP addres of the server) : serv01ev

For server 2 : hostname is serv03deb5.developpement-joomla.be and I have (in Webmin > Networking > Network configuration > Host addresses) : 127.0.0.1 : localhost 95.... (IP addres of the server) : serv03deb5

After pointing me to the right one (or possibly a third correct setting), can you tell me whether it is the same under Debian 6 ?

Best regards.

Status: 
Active

Comments

Howdy -- on any Linux distribution or version, you would want at least two things in your hosts file.

Line 1 would be "127.0.0.1" followed by the text "localhost" (some also include localhost.localdomain, that's okay to keep there).

Line 2 would be your public IP address, your FQDN (a hostname in the format host.domain.tld), and then optionally just the host portion of your hostname.

So in your case, that might look something like this:

127.0.0.1 localhost
95.x.x.x  serv01ev.euro-vote.com serv01ev

Thank you Andrey for this very clear answer.