Need help determining "name" of system on company network
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Need help determining "name" of system on company network




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Need help determining "name" of system on company network  
bkimelman@hotmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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).

I seem to recall something about the "ypcat" command being able to
lookup hosts (among other things) but when I attempt to run "ypcat
hosts" I receive an error message informing me that "the NIS domain
name hasn't been set on this machine".

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 ?

Any solution wowuld be appreciated.






[ Post a follow-up to this message ]



    Re: Need help determining "name" of system on company network  
Robert Harris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 10:59 PM

bkimelman@hotmail.com wrote:
> 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"
What recognises this name "qaz"? Either it is in your /etc/hosts file
under a wrong name or your corporate network's DNS is screwed.

Robert





[ Post a follow-up to this message ]



    Re: Need help determining "name" of system on company network  
Gordon Burditt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:37 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register