Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » Tips, Tricks & Tutorials

Post new topic   This topic is locked: you cannot edit posts or make replies.
A few tips about /etc/hosts and hostname setup.
View previous topic :: View next topic  
Author Message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Tue Apr 23, 2013 9:24 am    Post subject: A few tips about /etc/hosts and hostname setup. Reply with quote

I had a few users in the past, having some weird issues and I got permission to examine their servers.
It seems some of you don't run netconfig or netconfig-lcd (recommended) and try to manually
edit the /etc/hosts file, which is no problem, unless you do it right.

I don't know where those users got he information, but they all had a line in /etc/hosts with

127.0.0.1 localhost localhost.domain example example.org

The above config makes localhost non resolvable, and services like sqlgrey fail to start, resulting to a dead mail server.

The proper way is by adding your IP local or external if there is no NAT.
Code:
127.0.0.1 localhost localhost.domain
{your IP} example example.org

or even
Code:
127.0.0.1 localhost localhost.domain
127.0.0.1 example example.org


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    SMS Forum Index » Tips, Tricks & Tutorials All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional