- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Hosts file with 2 hostname or use an alias?
Operating System - Linux
1819804
Members
3215
Online
109607
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
Discussions
Discussions
Discussions
Forums
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
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-19-2005 02:03 AM
тАО05-19-2005 02:03 AM
Hi,
I would like to add another hostname to my hosts file to solve an my smtp issue. I also read something about an alias you can use in the hosts file as well. I am a newbie and still learning, and these servers just happen to be in production at the moment. I backed up my hosts file for safe keeping. Below, is an example what I have for my hosts file.
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost loopback
192.100.1.100 goose.mysite.corp goose loghost
#
192.168.1.101 geese
192.168.1.102 duck
** I would like to add a line in my hosts file such as this:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost loopback
192.100.1.100 goose.mysite.corp goose loghost
192.100.1.100 goose.mysiteinc.com goose
loghost
#
192.168.1.101 geese
192.168.1.102 duck
Or should I add an alias to my hosts file? If yes, please show me how I would do that?
Thank you in advance for helping.
Ian D.
I would like to add another hostname to my hosts file to solve an my smtp issue. I also read something about an alias you can use in the hosts file as well. I am a newbie and still learning, and these servers just happen to be in production at the moment. I backed up my hosts file for safe keeping. Below, is an example what I have for my hosts file.
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost loopback
192.100.1.100 goose.mysite.corp goose loghost
#
192.168.1.101 geese
192.168.1.102 duck
** I would like to add a line in my hosts file such as this:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost loopback
192.100.1.100 goose.mysite.corp goose loghost
192.100.1.100 goose.mysiteinc.com goose
loghost
#
192.168.1.101 geese
192.168.1.102 duck
Or should I add an alias to my hosts file? If yes, please show me how I would do that?
Thank you in advance for helping.
Ian D.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 02:09 AM
тАО05-19-2005 02:09 AM
Solution
Add the awlias to the /etc/host file.
Can look something like this;
192.168.1.100 goose.mysite.corp goose.mysiteinc.com goose loghost
So what you have is this IP address being referenced bny 2 different FQDN. Will still have the same short name of goose.
As to the other entry you have in which you have 2 IPs and 2 host names, this would refer to 2 sepatate systems (2 different IPs).
Can look something like this;
192.168.1.100 goose.mysite.corp goose.mysiteinc.com goose loghost
So what you have is this IP address being referenced bny 2 different FQDN. Will still have the same short name of goose.
As to the other entry you have in which you have 2 IPs and 2 host names, this would refer to 2 sepatate systems (2 different IPs).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 02:37 AM
тАО05-19-2005 02:37 AM
Re: Hosts file with 2 hostname or use an alias?
correct entry would be,
192.100.1.100 goose.mysite.corp goose.mysite.com goose loghost
192.100.1.100 goose.mysite.corp goose.mysite.com goose loghost
Never Never Never Giveup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2005 03:04 AM
тАО05-19-2005 03:04 AM
Re: Hosts file with 2 hostname or use an alias?
Wow!! That was quick!
Thanks, guys!!
Ian
Thanks, guys!!
Ian
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP