Method code for $dns.restart()

[Turn off line numbering]
  1: if (starting || !started)
  2:     return 0;
  3: connection = 0;
  4: catch any {
  5:     (> .startup_dns() <);
  6:     $sys.log("** Restarting async DNS lookups at " + dnshost.join(":"));
  7: } with {
  8:     $sys.log("** Unable to restart async DNS lookups because:");
  9:     $sys.log("** => " + traceback()[1][2]);
 10: }
 11: return valid(connection);

// Created 01-Jul-1997 as a part of ColdCore, see: @help Credit

Tlon