HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: /etc/hosts syntax plz help
Operating System - Linux
1828708
Members
2288
Online
109984
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 06:18 AM
05-11-2006 06:18 AM
I have configured the sendmail sever for two email domains
(1)test.com and for (2)abc.com
/etc/mail/local-host-names
test.com
abc.com
#host -t mx test.com
test.com mail is handled by 5 mail.test.com.
# host mail.test.com
mail.test.com has address 10.2.100.101
#host -t mx abc.com
test.com mail is handled by 5 mail.abc.com.
# host mail.abc.com
mail.abc.com has address 10.2.100.101
Now should I also make some updates to /etc/hosts file ?
#cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
Any Recommendations/suggestions/Best Practices will be Highly Appreciated
Thanks n Regards
Maaz
(1)test.com and for (2)abc.com
/etc/mail/local-host-names
test.com
abc.com
#host -t mx test.com
test.com mail is handled by 5 mail.test.com.
# host mail.test.com
mail.test.com has address 10.2.100.101
#host -t mx abc.com
test.com mail is handled by 5 mail.abc.com.
# host mail.abc.com
mail.abc.com has address 10.2.100.101
Now should I also make some updates to /etc/hosts file ?
#cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
Any Recommendations/suggestions/Best Practices will be Highly Appreciated
Thanks n Regards
Maaz
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 07:01 AM
05-11-2006 07:01 AM
Solution
It doesnt really matter how you configure it, always that you have all network interfaces with a different name in the file.
The hostname in /etc/hosts does not need to match the DNS name, so you /etc/hosts entry could be anything like this:
10.2.100.101 server1.abc.com server1 mail test
The hostname in /etc/hosts does not need to match the DNS name, so you /etc/hosts entry could be anything like this:
10.2.100.101 server1.abc.com server1 mail test
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 11:33 AM
05-11-2006 11:33 AM
Re: /etc/hosts syntax plz help
Shalom Maaz,
I think Ivan is saying you don't need to change this. If so, I agree.
For sanities sake, I put aliases in the /etc/hosts file. Especially when microsoft servers are involved with dns, files on linux is faster.
Never change the localhost line.
192.168.0.10 bersheva bersheva.itool.com abc-mx
Any alias you want, as many as you can stand to look at.
SEP
I think Ivan is saying you don't need to change this. If so, I agree.
For sanities sake, I put aliases in the /etc/hosts file. Especially when microsoft servers are involved with dns, files on linux is faster.
Never change the localhost line.
192.168.0.10 bersheva bersheva.itool.com abc-mx
Any alias you want, as many as you can stand to look at.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP