[LON-CAPA-cvs] cvs: loncom / loncnew

raeburn raeburn at source.lon-capa.org
Tue Jan 16 13:13:30 EST 2018


raeburn		Tue Jan 16 18:13:30 2018 EDT

  Modified files:              
    /loncom	loncnew 
  Log:
  - Support "local" mode in LondConnection.pm when a server's lonc is connecting
    to its own lond in distros where &hostname() returns only the short hostname
    (e.g., Ubuntu) by using Net::Domain::hostfqdn() in loncnew::my_hostname().
    (Net::Domain is a core perl module).
    -  On Ubuntu, also need to edit /etc/resolvconf/resolv.conf.d/tail
    to include: domain <domain name>  , and also run resolvconf -u.
  
  
Index: loncom/loncnew
diff -u loncom/loncnew:1.102 loncom/loncnew:1.103
--- loncom/loncnew:1.102	Fri Oct 20 20:20:20 2017
+++ loncom/loncnew	Tue Jan 16 18:13:29 2018
@@ -2,7 +2,7 @@
 # The LearningOnline Network with CAPA
 # lonc maintains the connections to remote computers
 #
-# $Id: loncnew,v 1.102 2017/10/20 20:20:20 raeburn Exp $
+# $Id: loncnew,v 1.103 2018/01/16 18:13:29 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2235,8 +2235,8 @@
 }
 
 sub my_hostname {
-    use Sys::Hostname;
-    my $name = &hostname();
+    use Net::Domain();
+    my $name = &Net::Domain::hostfqdn();
     &Debug(9,"Name is $name");
     return $name;
 }




More information about the LON-CAPA-cvs mailing list