docs: def check_config(filename):
      """Check configuration file of TonicDNS CLI.
  
      Argument:
  
          filename: config file name (default is ~/.tdclirc)
      """
      conf = configparser.SafeConfigParser(allow_no_value=False)
      conf.read(filename)
      try:
          server = conf.get('global', 'server')
      except configparser.NoSectionError:
          server = False
      except configparser.NoOptionError:
          server = False
      try:
          username = conf.get('auth', 'username')
      except configparser.NoSectionError:
          username = False
      except configparser.NoOptionError:
          username = False
      try:
          password = conf.get('auth', 'password')
      except configparser.NoSectionError:
          password = False
      except configparser.NoOptionError:
          password = False
      try:
          auto_update_soa = conf.get('global', 'soa_update')
      except configparser.NoSectionError:
          auto_update_soa = False
      except configparser.NoOptionError:
          auto_update_soa = False
  
      return server, username, password, auto_update_soa