--- loncom/lonnet/perl/lonnet.pm	2021/02/07 21:33:09	1.1172.2.138
+++ loncom/lonnet/perl/lonnet.pm	2021/02/10 15:00:54	1.1172.2.139
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1172.2.138 2021/02/07 21:33:09 raeburn Exp $
+# $Id: lonnet.pm,v 1.1172.2.139 2021/02/10 15:00:54 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1898,7 +1898,13 @@ sub get_dom {
         }
     }
     if ($udom && $uhome && ($uhome ne 'no_host')) {
-        my $rep=&reply("getdom:$udom:$namespace:$items",$uhome);
+        my $rep;
+        if (grep { $_ eq $uhome } &current_machine_ids()) {
+            # domain information is hosted on this machine
+            $rep = &LONCAPA::Lond::get_dom("getdom:$udom:$namespace:$items");
+        } else {        
+            $rep=&reply("getdom:$udom:$namespace:$items",$uhome);
+        }
         my %returnhash;
         if ($rep eq '' || $rep =~ /^error: 2 /) {
             return %returnhash;