- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to determine host aliases for particular m...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО09-18-2001 10:00 AM
тАО09-18-2001 10:00 AM
How to determine host aliases for particular machine
How can one determine the alias(es) for a machine without logging into it? Is there some method using nslookup?
HAGO,
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2001 11:13 AM
тАО09-18-2001 11:13 AM
Re: How to determine host aliases for particular machine
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2001 11:14 AM
тАО09-18-2001 11:14 AM
Re: How to determine host aliases for particular machine
at the prompt type:
ls -a domainname > tmpFileName
exit
grep yourHost tmpFileName
this does assume your dns server has correctly assigned a CNAME for the aliases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2001 11:16 AM
тАО09-18-2001 11:16 AM
Re: How to determine host aliases for particular machine
take a look at the following 2 nslookups i did. The first lists aliases because it was able to find the computer in /etc/hosts. the second doesn't list aliases because it uses DNS which doesn't list aliases with an nslookup
# nslookup 192.0.0.2
Using /etc/hosts on: aistrend
looking up FILES
Name: aistrend
Address: 192.0.0.2
Aliases: aistrend.allinterior.com
# nslookup alfert.com
Using /etc/hosts on: aistrend
looking up FILES
Trying DNS
Non-authoritative answer:
Name: alfert.com
Address: 209.194.65.125
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2001 11:49 AM
тАО09-19-2001 11:49 AM
Re: How to determine host aliases for particular machine
In interactive mode, the ls command comes back as not recognized.
Session examples as follows:
Here, entering the alias actually returns the ip, FQDN, & the alias:
[me@unixbox1]% nslookup
> thealias
Using /etc/hosts on: unixbox1
looking up FILES
Trying NIS
Trying DNS
Non-authoritative answer:
Name: realhostname.something.com
Address: 1.2.3.4
Aliases: thealias.something.com
>
Entering the FQDN does not return the alias:
> realhostname.something.com
Using /etc/hosts on: unixbox1
looking up FILES
Trying NIS
Trying DNS
Non-authoritative answer:
Name: realhostname.something.com
Address: 1.2.3.4
>
Entering the IP of the box does not return the alias:
> 1.2.3.4
Using /etc/hosts on: unixbox1
looking up FILES
Trying NIS
Trying DNS
Name: realhostname.something.com
Address: 1.2.3.4
>
Any and all insight apprecaited.
HAGO,
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2001 12:08 PM
тАО09-19-2001 12:08 PM
Re: How to determine host aliases for particular machine
nslookup
> server IP_of_the_dnsmaster server
> ls -a domainname > filetocheck
> exit
You can then grep filetocheck for the host you want.
The ls option should work, perhaps its not because your /etc/resolv.conf is not pointed directly at the master DNS server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2001 12:44 PM
тАО09-19-2001 12:44 PM
Re: How to determine host aliases for particular machine
*** Can't list domain mydomain.com: Query refused
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2001 04:56 PM
тАО09-19-2001 04:56 PM
Re: How to determine host aliases for particular machine
done for the aliases. Often only the official name is
reverse mapped. In this case you can not get
a list of all aliases.
hosts files often contain the fully qualified name
as well as the hostname, but you need to log into
a server with a hosts file. Other than the local
system only necessary entries will be found there.
The use of CNAME entries can create aliases for
servers that the administrator is unware of.