# 数据插件

### 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"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://irine-sistiana.gitbook.io/mosdns-wiki/mosdns-v5/ru-he-pei-zhi-mosdns/shu-ju-cha-jian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
