diff --git a/docs/simulate-dns-chaos-on-kubernetes.md b/docs/simulate-dns-chaos-on-kubernetes.md
index 61d2f3ae..0ed945ab 100644
--- a/docs/simulate-dns-chaos-on-kubernetes.md
+++ b/docs/simulate-dns-chaos-on-kubernetes.md
@@ -12,9 +12,7 @@ To simluate DNS faults, you need to deploy a special DNS service called Chaos DN
In the latest version, Chaos Mesh will deploy Chaos DNS Server by default. If you don't need to simulate DNS faults, you can set `dnsServer.create` to `false` when installing Chaos Mesh:
-
-helm install chaos-mesh chaos-mesh/chaos-mesh -n=chaos-mesh --version latest --set dnsServer.create=false
-
+{`helm install chaos-mesh chaos-mesh/chaos-mesh --namespace=chaos-mesh --version latest --set dnsServer.create=false`}
:::
diff --git a/versioned_docs/version-2.6.2/simulate-dns-chaos-on-kubernetes.md b/versioned_docs/version-2.6.2/simulate-dns-chaos-on-kubernetes.md
index 61d2f3ae..0ed945ab 100644
--- a/versioned_docs/version-2.6.2/simulate-dns-chaos-on-kubernetes.md
+++ b/versioned_docs/version-2.6.2/simulate-dns-chaos-on-kubernetes.md
@@ -12,9 +12,7 @@ To simluate DNS faults, you need to deploy a special DNS service called Chaos DN
In the latest version, Chaos Mesh will deploy Chaos DNS Server by default. If you don't need to simulate DNS faults, you can set `dnsServer.create` to `false` when installing Chaos Mesh:
-
-helm install chaos-mesh chaos-mesh/chaos-mesh -n=chaos-mesh --version latest --set dnsServer.create=false
-
+{`helm install chaos-mesh chaos-mesh/chaos-mesh --namespace=chaos-mesh --version latest --set dnsServer.create=false`}
:::