Index: sites/all/modules/contrib/domain/domain.drush.inc
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- sites/all/modules/contrib/domain/domain.drush.inc	(revision cb0fa2b91d73682abcd4ac6602cef6a9afd46090)
+++ sites/all/modules/contrib/domain/domain.drush.inc	(revision )
@@ -97,6 +97,17 @@
       'drush domain-repair',
     ),
   );
+
+  $items['domain-modify'] = array(
+    'description' => 'Modifying exist domain.',
+    'examples' => array(
+      'drush domain-modify example.com new.example.com'
+    ),
+    'arguments' => array(
+      'domain' => 'The existing domain  (e.g. example.com).',
+      'new_domain' => 'The new domain name (e.g. new.example.com).',
+    ),
+  );
   return $items;
 }
 
@@ -451,6 +462,23 @@
     $success = domain_update_zero_records(domain_update_tables($list));
     if ($success) {
       drush_print(dt('!count table(s) updated successfully.', array('!count' => count($list))));
+    }
+  }
+}
+
+/**
+ * Modifying exists domain.
+ */
+function drush_domain_modify($subdomain, $new_subdomain) {
+  $domains = domain_domains();
+
+  foreach ($domains as $row) {
+    $result = array_search($subdomain, $row);
+    if ($result == "subdomain") {
+      $row['subdomain'] = $new_subdomain;
+      $row['sitename'] = $new_subdomain;
+      domain_save($row);
+      break;
     }
   }
 }
