# 机场后端接入

{% embed url="<https://t.me/streamunblock1>" %}

{% hint style="warning" %}
注意：V2bX 等Xray实现不适用于当前文档，请参阅 [官方文档](https://v2bx.v-50.me/v2bx/gong-neng-shuo-ming/dns)
{% endhint %}

{% hint style="success" %}
~~<mark style="color:green;">**推荐使用DoQ**</mark>~~
{% endhint %}

{% hint style="info" %}
进群友反馈，XrayR的Quic不可用，故文档示例改为DoH接入
{% endhint %}

{% hint style="warning" %}
如果要启用geoip相关配置，请确保`geoip.dat`和`geosite.dat`处于和`config.yml`同一目录。
{% endhint %}

### XrayR

#### 1.修改DNS文件

{% code overflow="wrap" lineNumbers="true" %}

```shell
nano /etc/XrayR/dns.json
```

{% endcode %}

替换为

*<mark style="color:red;">**修改后请将注释行删除**</mark>*

{% code title="/etc/XrayR/dns.json" overflow="wrap" lineNumbers="true" %}

```json
{
  "servers": [
    "1.1.1.1",
    "8.8.8.8",
    {
      "address": "https+local://xxx.core.access.xxxxx.fun/dns-query",
      //"port": 53, 修改后请将此行删除
      //如需多个流媒体或域名请按照每个字符串+"," 分隔 如 ["geosite:netflix","geosite:disney","dddd.com"] 修改后请将此行删除
      "domains": ["geosite:netflix"]
    }
  ],
  "tag": "dns_inbound"
}
```

{% endcode %}

#### 2.修改 XrayR 配置文件

{% code title="/etc/XrayR/config.yml" overflow="wrap" lineNumbers="true" %}

```yaml
#第 5 行去掉#号开启
DnsConfigPath:  /etc/XrayR/dns.json
#第 35 行附近修改参数
EnableDNS: true
DNSType: UseIP
```

{% endcode %}

#### 3.重启

{% code overflow="wrap" lineNumbers="true" %}

```shell
XrayR restart
```

{% endcode %}

### Soga

请参阅Soga文档

Soga dns.yml 文件模板：<https://github.com/1-stream/1stream-public-utils/blob/main/soga.yml>


---

# 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://docs.1stream.icu/new/airport.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.
