original_docstring: 
          Updates the nameserver to query.
          
docstring: Updates the nameserver to query.
docstring_tokens: Updates the nameserver to query .
code: def update_nameserver(self, nameserver):
          """
          Updates the nameserver to query.
          """
  
          if nameserver:
              nameserver = (
                  [nameserver]
                  if not isinstance(nameserver, (list, tuple))
                  else nameserver
              )
  
              self.resolver.nameserver_ports = {
                  z: y
                  for x, y in self._get_server_and_port_from(nameserver)
                  for z in self.__get_dns_servers_from(x)
              }
  
              self.resolver.nameservers = list(self.resolver.nameserver_ports.keys())
  
              PyFunceble.LOGGER.info(
                  f"Switched Resolver nameserver to: {self.resolver.nameservers}"
              )
              PyFunceble.LOGGER.info(
                  f"Switched Resolver nameserver port to: {self.resolver.nameserver_ports}"
              )
code_tokens: def update_nameserver ( self , nameserver ) : if nameserver : nameserver = ( [ nameserver ] if not isinstance ( nameserver , ( list , tuple ) ) else nameserver ) self . resolver . nameserver_ports = { z : y for x , y in self . _get_server_and_port_from ( nameserver ) for z in self . __get_dns_servers_from ( x ) } self . resolver . nameservers = list ( self . resolver . nameserver_ports . keys ( ) ) PyFunceble . LOGGER . info ( f"Switched Resolver nameserver to: {self.resolver.nameservers}" ) PyFunceble . LOGGER . info ( f"Switched Resolver nameserver port to: {self.resolver.nameserver_ports}" )
short_docstring: Updates the nameserver to query.
short_docstring_tokens: Updates the nameserver to query .
comment: """
          Updates the nameserver to query.
          """