Removed references to Machines.
[clearscm.git] / lib / Rexec.pm
index 71fdd22..8d6a9a3 100644 (file)
@@ -500,6 +500,10 @@ Returns:
   # Close any prior opened sessions
   $self->logoff if ($self->{handle});
 
+  # Check to see if this machines is known in DNS. If not then the chance is
+  # good that we will not be able to log in
+  return unless gethostbyname $self->{host};
+    
   my $remote;
 
   if ($self->{protocol}) {