Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Net::Telnet Question - Using Windows

Status
Not open for further replies.

Edge118

Programmer
Jun 15, 2004
104
US
Hi,

I was trying to use the Telnet module and I typed the following code into my script:

Code:
use Net::Telnet();
$t = new Net::Telnet;
$t->open({Full Computer Name});

For the line $t->open...I right clicked on "My Computer" and typed in the "Full Computer Name(computername.domain)" located under the identification tab. It gives me an "Unknown remote host" error. Is it possible to use the name and domain of the machine to connect to connect to it?

Sorry for not being very clear and precise.

"Pin me. Perl me."

Regards,

Chris
 
Chris,
Do you have a DNS server on your network that will resolve the fully qualified name? You might try executing an nslookup command on your full computer name and see if it can be resolved. If nothing else, it will eliminate DNS as an issue.

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top