> For the complete documentation index, see [llms.txt](https://irine-sistiana.gitbook.io/mosdns-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://irine-sistiana.gitbook.io/mosdns-wiki/mosdns-v5/ru-he-pei-zhi-mosdns/shu-ju-cha-jian.md).

# 数据插件

### domain\_set

载入的域名表可供其他插件引用。

插件加载后，数据只占一份内存。引用的数据是共享的，多次被引用不会消耗格外内存。

初始化参数说明:

```yaml
tag: ""
type: "domain_set"
args:
  exps:                         # 域名表达式。
    - "google.com"
    - "regexp:.+\.google\.com$"
  files:                        # 从文本文件载入
    - "./domain.txt"
```

域名表达式省略前缀默认为 `domain` 域匹配。详见 [域名匹配规则](#yu-ming-pi-pei-gui-ze)。

### ip\_set

载入的 IP 表可供其他插件引用。插件加载后，数据只占一份内存。多次被引用，数据是共享的，不会消耗格外内存。

初始化参数说明:

```yaml
tag: ""
type: "ip_set"
args:
  ips:             # 可以是 IP 或 CIDR。
    - "1.1.1.1"
    - "1.1.1.1/24"
  files:           # 从文本文件载入
    - "./ip.txt"
```
