Skip to content

Commit

Permalink
[zh] sync dns-pod-service.md
Browse files Browse the repository at this point in the history
  • Loading branch information
windsonsea committed Feb 8, 2023
1 parent b0fc332 commit 2c6506d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ in its `/etc/resolv.conf` file:
创建上面的 Pod 后,容器 `test` 会在其 `/etc/resolv.conf` 文件中获取以下内容:

```
nameserver 1.2.3.4
nameserver 192.0.2.1
search ns1.svc.cluster-domain.example my.dns.search.suffix
options ndots:2 edns0
```
Expand Down
2 changes: 1 addition & 1 deletion content/zh-cn/examples/service/networking/custom-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
dnsPolicy: "None"
dnsConfig:
nameservers:
- 1.2.3.4
- 192.0.2.1 # 这是一个示例
searches:
- ns1.svc.cluster-domain.example
- my.dns.search.suffix
Expand Down

0 comments on commit 2c6506d

Please sign in to comment.