code: def target_to_hostname(target):
      
  
      if len(target) == 0 or len(target) > 255:
          return None
      if not re.match(r'^[\w.-]+$', target):
          return None
      return [target]
docs: Attempt to return a single hostname list from a target string.