I'm trying to set up a mail server using this guide.
But i'm a bit confused about the /etc/hosts. Here's what's confusing me:
(2) The next thing is confusing. Let's say i'm hosting this domain on my Ubuntu box www.123.com and my mailaddress should look something email@example.com.
What should the "server1.example.com" look like in my case?
(3) This make a bit sense to me (alias, wright?)
Thanks - hope not that this is a too stupid question
The /etc/hosts file simply maps IPs to hostnames. If you look in your '/etc/nsswitch.conf' file, you'll see lines similar to:
To answer your question, 'server1.example.com' and 'server1' are both hostnames that point to 192.168.0.100. You could list as many names as you like this way. So I could 'ping server1' and it will ping 192.168.0.100... or I could 'ping server1.example.com' and it will also ping 192.168.0.100.
|All times are GMT +2. The time now is 21:01.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.