Files
smartdns/docs/config/bootstrap-dns.md
2023-06-03 17:46:49 +08:00

31 lines
1.0 KiB
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
BootStrap DNS一般用于自启动的域名解析如对于域名类的上游服务器此时用于自启动解析域名的DNS称之为BootStrap DNS。
默认情况下SmartDNS会使用其他IP地址类的服务器进行解析所以只要确保有至少一个IP地址类型的DNS上游即可自动解析后续的域名类上游服务器但某些时候需要指定一组DNS专门用于bootstrap域名解析此时可通过如下方式配置
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
```