code: function to(callback) {
    const timeout = setTimeout(() => {
      callback(new Error('DNS request timed out.'));
      callback = null;
    }, 5000);
  
    return function(err, result) {
      if (callback) {
        clearTimeout(timeout);
        callback(err, result);
      }
    };
  }
docs: /*
  Helpers