> For the complete documentation index, see [llms.txt](https://docs.1stream.icu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.1stream.icu/new/dns.md).

# 修改系统DNS

{% embed url="<https://t.me/streamunblock1>" %}

{% hint style="success" %} <mark style="color:red;">**说明:请将以下内容中**</mark><mark style="color:red;">**&#x20;**</mark><mark style="color:red;">**`xx.x.x.x`**</mark><mark style="color:red;">**&#x20;**</mark><mark style="color:red;">**替换为面板返回的实际DNS**</mark>
{% endhint %}

### 一键脚本

{% code overflow="wrap" lineNumbers="true" %}

```shell
bash <(curl -L -s https://raw.githubusercontent.com/1-stream/1stream-public-utils/main/dns-change.sh) xx.x.x.x
```

{% endcode %}

### 还原DNS

<pre class="language-shell" data-overflow="wrap" data-line-numbers><code class="lang-shell"><strong>echo -e "nameserver 8.8.8.8\nnameserver 1.1.1.1" > /etc/resolv.conf
</strong></code></pre>
