---
url: /configuration/dns/server/local.md
description: 使用本机 resolv.conf 列出的 DNS
---

# Local

读取本机 resolver 配置文件，并询问其中的 nameserver。

```yaml check
dns:
  servers:
    local:
      type: local
      path: /etc/resolv.conf
  final: local
```

## 字段

### type

* 类型：字符串。
* 必填：是，第一项。
* 取值：`local`。

### path

* 类型：路径。
* 默认：`/etc/resolv.conf`。
* 行为：相对路径以数据目录为基准。

## 说明

`local` 会真实询问文件中的上游，所以可作为 `dns.final` 的默认上游。

## 相关

* [DNS 服务器总览](/configuration/dns/server/)
