code: async def set_upstream_dns(
              cls, addresses: typing.Optional[typing.Sequence[str]]):
          
          await cls.set_config("upstream_dns", (
              "" if addresses is None else",".join(addresses)))
docs: See `get_upstream_dns`.