08-22-05 10:59 PM
>Here at the office, we have a large number of systems (some HP, some
>IBM, etc...)
>of the corporate network.
>
>When I connect to one of the systems, an HP system, via telnet or ftp,
>I use a name which is not the same value as that reported by the UNIX
>"hostname" or "uname" commands; i.e. I connect from my PC using
>"telnet qaz" and when I logon to the UNIX system the "hostname" and
>"uname" commands tell me that the name of the system is "hp99". I would
>like to be able to determine the "name" I used on the telnet command on
>my PC (so I can use it to set my command prompt amongst other things).
Use a reverse DNS lookup of the host's IP address (or one of it's
addresses, excluding 127.0.0.1). This assumes that the network even
has reverse DNS set up, and does it correctly.
>So, is it even possible for me, after I complete my logon process, to
>determine the value of the "system name" I used on the telnet command
>from my PC ?
No, on the grounds that a host can have many DNS A records pointing
at it, some of them potentially objected to by the owner of the
systems, and a reverse DNS lookup may find only some of them, which
may or may not include the name you used. It should find a name (or
maybe more than one) you CAN use on the telnet command.
Gordon L. Burditt
[ Post a follow-up to this message ]
|