HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what command to see alias names of a Unix m/c
Operating System - HP-UX
1833871
Members
1737
Online
110063
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
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
11-19-2004 04:53 PM
11-19-2004 04:53 PM
what command to see alias names of a Unix m/c
Hi,
what command to see alias names of a Unix m/c
we login to m/c using one name.
But hostname command shows different
To make sure both are same m/c, we want to see
alias names for a machine.
Thanks
Ezhil
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 05:35 PM
11-19-2004 05:35 PM
Re: what command to see alias names of a Unix m/c
Hi Ezhil,
To see what alias names you have for your system look at /etc/hosts file.
# cd /etc
# more hosts
Hope that helps.
Regards,
To see what alias names you have for your system look at /etc/hosts file.
# cd /etc
# more hosts
Hope that helps.
Regards,
You need to know a lot to actually know how little you know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 07:47 PM
11-19-2004 07:47 PM
Re: what command to see alias names of a Unix m/c
Hi ezhil
/etc/hosts file contains the host name and it's aliases.U can refere /etc/hosts file to view the hosts alises.
1.use cat /etc/hosts to view host alias
2.The uname -a command will show u the actaual host name.
regards
SK
sunilhcl@rediffmail.com
/etc/hosts file contains the host name and it's aliases.U can refere /etc/hosts file to view the hosts alises.
1.use cat /etc/hosts to view host alias
2.The uname -a command will show u the actaual host name.
regards
SK
sunilhcl@rediffmail.com
Your imagination is the preview of your life's coming attractions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2004 04:12 AM
11-20-2004 04:12 AM
Re: what command to see alias names of a Unix m/c
Hi,
If you are using DNS for the name resolution, you can try nslookup to see if any alias is set for that host,
nslookup ip_add_of_the_host
nslookup host_name
But instead of an alias, the dns name that you are using could be a floating ip. It is not always to find all the aliases for a certain ip /host unless you have access to the DNS server.
Hope this helps.
Regds
If you are using DNS for the name resolution, you can try nslookup to see if any alias is set for that host,
nslookup ip_add_of_the_host
nslookup host_name
But instead of an alias, the dns name that you are using could be a floating ip. It is not always to find all the aliases for a certain ip /host unless you have access to the DNS server.
Hope this helps.
Regds
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