-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
167 changed files
with
331 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
assets/js/runtime~app.0ab52007.js → assets/js/runtime~app.c4860ba5.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<meta name="generator" content="VuePress 2.0.0-beta.25"> | ||
<link rel="icon" href="/logo.png"><title>API 接口 | Project X</title><meta name="description" content="Xray 官方文档"> | ||
<link rel="preload" href="/assets/js/runtime~app.0ab52007.js" as="script"><link rel="preload" href="/assets/css/styles.f4ef6178.css" as="style"><link rel="preload" href="/assets/js/3469.574b203c.js" as="script"><link rel="preload" href="/assets/js/app.66687671.js" as="script"> | ||
<link rel="preload" href="/assets/js/runtime~app.c4860ba5.js" as="script"><link rel="preload" href="/assets/css/styles.f4ef6178.css" as="style"><link rel="preload" href="/assets/js/3469.574b203c.js" as="script"><link rel="preload" href="/assets/js/app.d5f0211a.js" as="script"> | ||
<link rel="stylesheet" href="/assets/css/styles.f4ef6178.css"> | ||
</head> | ||
<body> | ||
|
@@ -44,6 +44,6 @@ | |
xray.app.proxyman.command.HandlerService | ||
xray.app.stats.command.StatsService | ||
</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br></div></div><h2 id="api-调用示例" tabindex="-1"><a class="header-anchor" href="#api-调用示例" aria-hidden="true">#</a> API 调用示例</h2><p><a href="https://github.com/XTLS/Xray-API-documents" target="_blank" rel="noopener noreferrer">Xray-API-documents<span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span></a> @crossfw</p><!--]--></div><footer class="page-meta"><div class="meta-item edit-link"><a class="nav-link external meta-item-label" href="https://github.com/xtls/Xray-docs-next/edit/main/docs/config/api.md" rel="noopener noreferrer" target="_blank" aria-label="帮助我们改善此页面!"><!--[--><!--]--> 帮助我们改善此页面! <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></div><div class="meta-item last-updated"><span class="meta-item-label">最近更改: </span><span class="meta-item-info">2023/3/5 22:01:23</span></div><div class="meta-item contributors"><span class="meta-item-label">Contributors: </span><span class="meta-item-info"><!--[--><!--[--><span class="contributor" title="email: [email protected]">JimhHan</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: [email protected]">Jim Han</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: [email protected]">OrdosX</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: [email protected]">Zimo Li</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: [email protected]">yuhan6665</span><!----><!--]--><!--]--></span></div></footer><nav class="page-nav"><p class="inner"><span class="prev"> ← <a href="/config/log.html" class="nav-link" aria-label="日志配置"><!--[--><!--]--> 日志配置 <!--[--><!--]--></a></span><span class="next"><a href="/config/dns.html" class="nav-link" aria-label="内置 DNS 服务器"><!--[--><!--]--> 内置 DNS 服务器 <!--[--><!--]--></a> → </span></p></nav><!--[--><!--]--></main><!--]--></div><!----><!--]--></div> | ||
<script src="/assets/js/runtime~app.0ab52007.js" defer></script><script src="/assets/js/3469.574b203c.js" defer></script><script src="/assets/js/app.66687671.js" defer></script> | ||
<script src="/assets/js/runtime~app.c4860ba5.js" defer></script><script src="/assets/js/3469.574b203c.js" defer></script><script src="/assets/js/app.d5f0211a.js" defer></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<meta name="generator" content="VuePress 2.0.0-beta.25"> | ||
<link rel="icon" href="/logo.png"><title>内置 DNS 服务器 | Project X</title><meta name="description" content="Xray 官方文档"> | ||
<link rel="preload" href="/assets/js/runtime~app.0ab52007.js" as="script"><link rel="preload" href="/assets/css/styles.f4ef6178.css" as="style"><link rel="preload" href="/assets/js/3469.574b203c.js" as="script"><link rel="preload" href="/assets/js/app.66687671.js" as="script"> | ||
<link rel="preload" href="/assets/js/runtime~app.c4860ba5.js" as="script"><link rel="preload" href="/assets/css/styles.f4ef6178.css" as="style"><link rel="preload" href="/assets/js/3469.574b203c.js" as="script"><link rel="preload" href="/assets/js/app.d5f0211a.js" as="script"> | ||
<link rel="stylesheet" href="/assets/css/styles.f4ef6178.css"> | ||
</head> | ||
<body> | ||
|
@@ -45,6 +45,6 @@ | |
<span class="token property">"clientIP"</span><span class="token operator">:</span> <span class="token string">"1.2.3.4"</span> | ||
<span class="token punctuation">}</span> | ||
</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br></div></div><blockquote><p><code>address</code>: address</p></blockquote><p>一个 DNS 服务器列表,支持的类型有两种:DNS 地址(字符串形式)和 ServerObject 。</p><p>当值为 <code>"localhost"</code> 时,表示使用本机预设的 DNS 配置。</p><p>当它的值是一个 DNS <code>"IP"</code> 地址时,如 <code>"8.8.8.8"</code>,Xray 会使用此地址的指定 UDP 端口进行 DNS 查询。该查询遵循路由规则。默认使用 53 端口。</p><p>当值是 <code>"tcp://host"</code> 的形式,如 <code>"tcp://8.8.8.8"</code>,Xray 会使用 <code>DNS over TCP</code> 进行查询。该查询遵循路由规则。默认使用 53 端口。</p><p>当值是 <code>"tcp+local://host"</code> 的形式,如 <code>"tcp+local://8.8.8.8"</code>,Xray 会使用 <code>TCP 本地模式 (TCPL)</code> 进行查询。即 DNS 请求不会经过路由组件,直接通过 Freedom outbound 对外请求,以降低耗时。不指定端口时,默认使用 53 端口。</p><p>当值是 <code>"https://host:port/dns-query"</code> 的形式,如 <code>"https://dns.google/dns-query"</code>,Xray 会使用 <code>DNS over HTTPS</code> (RFC8484, 简称 DOH) 进行查询。有些服务商拥有 IP 别名的证书,可以直接写 IP 形式,比如 <code>https://1.1.1.1/dns-query</code>。也可使用非标准端口和路径,如 <code>"https://a.b.c.d:8443/my-dns-query"</code></p><p>当值是 <code>"https+local://host:port/dns-query"</code> 的形式,如 <code>"https+local://dns.google/dns-query"</code>,Xray 会使用 <code>DOH 本地模式 (DOHL)</code> 进行查询,即 DOH 请求不会经过路由组件,直接通过 Freedom outbound 对外请求,以降低耗时。一般适合在服务端使用。也可使用非标端口和路径。</p><p>当值是 <code>"quic+local://host:port"</code> 的形式,如 <code>"quic+local://dns.adguard.com"</code>,Xray 会使用 <code>DOQ 本地模式 (DOQL)</code> 进行查询,即 DNS 请求不会经过路由组件,直接通过 Freedom outbound 对外请求。该方式需要 DNS 服务器支持 DNS over QUIC。默认使用 784 端口进行查询,可以使用非标端口。</p><p>当值是 <code>fakedns</code> 时,将使用 FakeDNS 功能进行查询。</p><blockquote><p><code>port</code>: number</p></blockquote><p>DNS 服务器端口,如 <code>53</code>。此项缺省时默认为 <code>53</code>。当使用 DOH、DOHL、DOQL 模式时该项无效,非标端口应在 URL 中指定。</p><blockquote><p><code>domains</code>: [string]</p></blockquote><p>一个域名列表,此列表包含的域名,将优先使用此服务器进行查询。域名格式和 <a href="/config/routing.html#ruleobject" class="">路由配置</a> 中相同。</p><blockquote><p><code>expectIPs</code>:[string]</p></blockquote><p>一个 IP 范围列表,格式和 <a href="/config/routing.html#ruleobject" class="">路由配置</a> 中相同。</p><p>当配置此项时,Xray DNS 会对返回的 IP 的进行校验,只返回包含 expectIPs 列表中的地址。</p><p>如果未配置此项,会原样返回 IP 地址。</p><blockquote><p><code>skipFallback</code>: true | false</p></blockquote><p><code>true</code>,在进行 DNS fallback 查询时将跳过此服务器, 默认为 <code>false</code>,即不跳过。</p><!--]--></div><footer class="page-meta"><div class="meta-item edit-link"><a class="nav-link external meta-item-label" href="https://github.com/xtls/Xray-docs-next/edit/main/docs/config/dns.md" rel="noopener noreferrer" target="_blank" aria-label="帮助我们改善此页面!"><!--[--><!--]--> 帮助我们改善此页面! <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></div><div class="meta-item last-updated"><span class="meta-item-label">最近更改: </span><span class="meta-item-info">2022/7/16 12:51:14</span></div><div class="meta-item contributors"><span class="meta-item-label">Contributors: </span><span class="meta-item-info"><!--[--><!--[--><span class="contributor" title="email: [email protected]">JimhHan</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: [email protected]">Jim Han</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: [email protected]">rootmelo92118</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: [email protected]">xqzr</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: [email protected]">Kobe Arthur Scofield</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: [email protected]">yuhan6665</span><!----><!--]--><!--]--></span></div></footer><nav class="page-nav"><p class="inner"><span class="prev"> ← <a href="/config/api.html" class="nav-link" aria-label="API 接口"><!--[--><!--]--> API 接口 <!--[--><!--]--></a></span><span class="next"><a href="/config/fakedns.html" class="nav-link" aria-label="FakeDNS"><!--[--><!--]--> FakeDNS <!--[--><!--]--></a> → </span></p></nav><!--[--><!--]--></main><!--]--></div><!----><!--]--></div> | ||
<script src="/assets/js/runtime~app.0ab52007.js" defer></script><script src="/assets/js/3469.574b203c.js" defer></script><script src="/assets/js/app.66687671.js" defer></script> | ||
<script src="/assets/js/runtime~app.c4860ba5.js" defer></script><script src="/assets/js/3469.574b203c.js" defer></script><script src="/assets/js/app.d5f0211a.js" defer></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<meta name="generator" content="VuePress 2.0.0-beta.25"> | ||
<link rel="icon" href="/logo.png"><title>FakeDNS | Project X</title><meta name="description" content="Xray 官方文档"> | ||
<link rel="preload" href="/assets/js/runtime~app.0ab52007.js" as="script"><link rel="preload" href="/assets/css/styles.f4ef6178.css" as="style"><link rel="preload" href="/assets/js/3469.574b203c.js" as="script"><link rel="preload" href="/assets/js/app.66687671.js" as="script"> | ||
<link rel="preload" href="/assets/js/runtime~app.c4860ba5.js" as="script"><link rel="preload" href="/assets/css/styles.f4ef6178.css" as="style"><link rel="preload" href="/assets/js/3469.574b203c.js" as="script"><link rel="preload" href="/assets/js/app.d5f0211a.js" as="script"> | ||
<link rel="stylesheet" href="/assets/css/styles.f4ef6178.css"> | ||
</head> | ||
<body> | ||
|
@@ -111,6 +111,6 @@ | |
<span class="token punctuation">]</span> | ||
<span class="token punctuation">}</span> | ||
</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div></div><!--]--></div><footer class="page-meta"><div class="meta-item edit-link"><a class="nav-link external meta-item-label" href="https://github.com/xtls/Xray-docs-next/edit/main/docs/config/fakedns.md" rel="noopener noreferrer" target="_blank" aria-label="帮助我们改善此页面!"><!--[--><!--]--> 帮助我们改善此页面! <span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariahidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span><!--[--><!--]--></a></div><div class="meta-item last-updated"><span class="meta-item-label">最近更改: </span><span class="meta-item-info">2022/6/21 02:16:41</span></div><div class="meta-item contributors"><span class="meta-item-label">Contributors: </span><span class="meta-item-info"><!--[--><!--[--><span class="contributor" title="email: [email protected]">JimhHan</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: [email protected]">Jim Han</span><!--[-->, <!--]--><!--]--><!--[--><span class="contributor" title="email: [email protected]">Kobe Arthur Scofield</span><!----><!--]--><!--]--></span></div></footer><nav class="page-nav"><p class="inner"><span class="prev"> ← <a href="/config/dns.html" class="nav-link" aria-label="内置 DNS 服务器"><!--[--><!--]--> 内置 DNS 服务器 <!--[--><!--]--></a></span><span class="next"><a href="/config/inbound.html" class="nav-link" aria-label="入站代理"><!--[--><!--]--> 入站代理 <!--[--><!--]--></a> → </span></p></nav><!--[--><!--]--></main><!--]--></div><!----><!--]--></div> | ||
<script src="/assets/js/runtime~app.0ab52007.js" defer></script><script src="/assets/js/3469.574b203c.js" defer></script><script src="/assets/js/app.66687671.js" defer></script> | ||
<script src="/assets/js/runtime~app.c4860ba5.js" defer></script><script src="/assets/js/3469.574b203c.js" defer></script><script src="/assets/js/app.d5f0211a.js" defer></script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.