Files
smartdns/docs/config/bootstrap-dns.md
2023-03-10 23:53:17 +08:00

31 lines
818 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
hide:
- toc
---
# Bootstrap DNS
对于域名类的上游服务器SmartDNS会使用其他IP地址类的服务器进行解析所以一般情况下无需配置BootStrap DNS但如果有特殊需求需要指定BootStrap DNS则可以通过如下方式配置
1. 方法一对所有服务器指定bootstrap DNS
使用`-bootstrap-dns`参数指定特定的server为bootstrap DNS。
```shell
server 1.2.3.4 -bootstrap-dns
server dns.server
```
1. 方法二:针对特定服务器
使用`nameserver /domain/bootstrap-dns`参数指定特定域名使用指定DNS解析。
```shell
# 配置bootstrap DNS
server 1.2.3.4 -group bootstrap-dns
nameserver /dns.server/bootstrap-dns
# 此服务器将使用1.2.3.4解析
server dns.server
```