id: 4747e44a58504d14a53a32aad431cad6
parent_id: 
item_type: 1
item_id: c3c58507e59045d3900be95ed7eeb28b
item_updated_time: 1764345475122
title_diff: "[{\"diffs\":[[1,\"dnsmasq详解及配置 [2]\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":16}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>dnsmasq详解及配置</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"7088\\\"></a>\\\r\\\n<h1>dnsmasq详解及配置</h1>\\\r\\\n\\\r\\\n<div>\\\n<span><div><br/></div><div style=\\\"min-width: 100%; position: relative;\\\"><div style=\\\"box-sizing: border-box; text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\\\"><div style=\\\"box-sizing: border-box; background-color: rgb(255, 255, 255);\\\"><div style=\\\"box-sizing: border-box;\\\"><div style=\\\"box-sizing: border-box;\\\"><div style=\\\"box-sizing: border-box;\\\"><div style=\\\"box-sizing: border-box;\\\"><div style=\\\"box-sizing: border-box; word-break: break-all; background-color: rgb(248, 248, 253); box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px, rgba(10, 10, 0, 0.1) 0px 0px 30px inset;\\\"><div style=\\\"box-sizing: border-box;\\\"><div style=\\\"box-sizing: border-box;\\\"><div style=\\\"box-sizing: border-box;\\\"><div style=\\\"box-sizing: border-box; padding: 9.5px; margin: 0px 0px 10px; word-break: break-all; background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); border-radius: 4px; white-space: pre; overflow: auto; overflow-wrap: normal;\\\"><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#no-hosts</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 添加读取额外的 hosts 文件路径，可以多次指定。如果指定为目录，则读取目录中的所有文件。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#addn-hosts=/etc/dnsmasq.hosts.d</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 读取目录中的所有文件，文件更新将自动读取</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#hostsdir=/etc/dnsmasq.hosts.d</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 例如，/etc/hosts中的os01将扩展成os01.example.com</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#expand-hosts</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 缓存时间设置，一般不需要设置</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 本地 hosts 文件的缓存时间，通常不要求缓存本地，这样更改hosts文件后就即时生效。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#local-ttl=3600</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 同 local-ttl 仅影响 DHCP 租约</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-ttl=&lt;time&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 对于上游返回的值没有ttl时，dnsmasq给一个默认的ttl，一般不需要设置，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#neg-ttl=&lt;time&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定返回给客户端的ttl时间，一般不需要设置</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#max-ttl=&lt;time&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 设置在缓存中的条目的最大 TTL。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#max-cache-ttl=&lt;time&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 不需要设置，除非你知道你在做什么。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div><span style=\\\"font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"><font color=\\\"#E30000\\\" style=\\\"font-size: 10pt;\\\">#min-cache-ttl=&lt;time&gt;</font></span></div><h1 style=\\\"margin: 0px; padding: 0px; outline: none; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;Microsoft Yahei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Heiti SC&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;\\\"><span style=\\\"outline: none; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;Microsoft Yahei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Heiti SC&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-weight: normal;\\\"><font color=\\\"#E30000\\\" style=\\\"font-size: 10pt;\\\">#和max-cache-ttl相反，如果域名ttl低于设定值，强制使用设定为dnsmasq服务器的缓存时间，限制不能超过3600</font></span></h1><div style=\\\"font-size: 14px; margin: 0px 0px 5px; padding: 0px; outline: none; line-height: 24px; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;Microsoft Yahei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Heiti SC&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;\\\"><span style=\\\"outline: none; line-height: 24px; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;Microsoft Yahei&quot;, &quot;Hiragino Sans GB&quot;, &quot;Heiti SC&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif; font-size: 14px; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;\\\"><font color=\\\"#E30000\\\">min-cache-ttl=3600</font></span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 一般不需要设置</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#auth-ttl=&lt;time&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 记录dns查询日志，如果指定 log-queries=extra 那么在每行开始处都有额外的日志信息。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#log-queries</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 设置日志记录器，'-' 为 stderr，也可以是文件路径。默认为：DAEMON，调试时使用 LOCAL0。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#log-facility=&lt;facility&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#log-facility=/var/log/dnsmasq/dnsmasq.log</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 异步log，缓解阻塞，提高性能。默认为5，最大100。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#log-async[=&lt;lines&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#log-async=50</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定用户和组</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#user=nobody</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#group=nobody</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定DNS的端口，默认53，设置 port=0 将完全禁用 DNS 功能，仅使用 DHCP/TFTP</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#port=53</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定 EDNS.0 UDP 包的最大尺寸，默认为 RFC5625 推荐的 edns-packet-max=4096</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#edns-packet-max=&lt;size&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定向上游查询的 UDP 端口，默认是随机端口，指定后降低安全性、加快速度、减少资源消耗。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 设置为 '0' 由操作系统分配。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#query-port=53535</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定向上游查询的 UDP 端口范围，方便防火墙设置。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#min-port=&lt;port&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#max-port=&lt;port&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定接口，指定后同时附加 lo 接口，可以使用'*'通配符。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 不能使用接口别名（例如：&quot;eth1:0&quot;），请用 listen-address 选项替代。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#interface=wlp2s0</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定排除的接口，排除优先级高，可以使用'*'通配符</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#except-interface=</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 仅接受同一子网的 DNS 请求。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 仅在未指定 interface、except-interface、listen-address 或者 auth-server 时有效。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#local-service</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定不提供 DHCP 或 TFTP 服务的接口，仅提供 DNS 服务。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#no-dhcp-interface=enp3s0</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定IP地址，可以多次指定。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># interface 选项和 listen-address 选项可以同时使用。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 下面两行与指定 interface 选项的作用类似。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">listen-address=192.168.10.17</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#listen-address=127.0.0.1</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 通常情况下即使设置了 interface 选项（例如：interface=wlp2s0 ）</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 将仍然绑定到通配符地址（例如：*:53 ）。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 开启此项将仅监听指定的接口。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 适用于在同一主机的不同接口或 IP 地址上运行多个 dns 服务器。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">bind-interfaces</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 对于新添加的接口不进行绑定。仅 Linux 系统支持，其他系统等同于 bind-interfaces 选项。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#bind-dynamic</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果 hosts 中的主机有多个 IP 地址，仅返回对应子网的 IP 地址。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">localise-queries</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果反向查找的是私有地址例如192.168.X.X，仅从 hosts 文件查找，不再转发到上游服务器</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#bogus-priv</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 对于任何被解析到此 IP 的域名，将响应 NXDOMAIN 使其解析失效，可以多次指定</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 通常用于对于访问不存在的域名，禁止其跳转到运营商的广告站点。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#bogus-nxdomain=64.94.110.11</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 忽略包含指定地址的 A 记录查询的回复。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 例如上游有台 dns 服务器伪造 www.baidu.com 的 IP 为 1.1.1.1 并且响应速度非常快。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定 ignore-address=1.1.1.1 可以忽略它的响应信息，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 从而等待 www.baidu.com 正确的查询结果。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#ignore-address=&lt;ipaddr&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">filterwin2k</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定 resolv-file 文件路径，默认/etc/resolv.conf</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#resolv-file=/etc/resolv.conf</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 不读取 resolv-file 来确定上游服务器</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#no-resolv</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 在编译时需要启用 DBus 支持。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#enable-dbus[=&lt;service-name&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 严格按照resolv.conf中的顺序进行查找</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#strict-order</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 向所有上游服务器发送查询，而不是一个。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">all-servers</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 启用转发循环检测</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dns-loop-detect</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 这项安全设置是拒绝解析包含私有 IP 地址的域名，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 这些IP地址包括如下私有地址范围：10.0.0.0/8、172.16.0.0/12、192.168.0.0/16。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 其初衷是要防止类似上游DNS服务器故意将某些域名解析成特定私有内网IP而劫持用户这样的安全***。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 直接在配置文件中注销 stop-dns-rebind 配置项从而禁用该功能。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 这个方法确实可以一劳永逸的解决解析内网 IP 地址的问题，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 但是我们也失去了这项安全保护的特性，所以在这里我不推荐这个办法。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 使用 rebind-domain-ok 进行特定配置，顾名思义该配置项可以有选择的忽略域名的 rebind 行为</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">stop-dns-rebind</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">rebind-localhost-ok</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#rebind-domain-ok=[&lt;domain&gt;]|[[/&lt;domain&gt;/[&lt;domain&gt;/]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">rebind-domain-ok=/.test.com/</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 也不要检测 /etc/resolv.conf 的变化</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#no-poll</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 重启后清空缓存</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">clear-on-reload</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 完整的域名才向上游服务器查找，如果仅仅是主机名仅查找hosts文件</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">domain-needed</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># IP地址转换</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#alias=[&lt;old-ip&gt;]|[&lt;start-ip&gt;-&lt;end-ip&gt;],&lt;new-ip&gt;[,&lt;mask&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#local=[/[&lt;domain&gt;]/[domain/]][&lt;ipaddr&gt;[#&lt;port&gt;][@&lt;source-ip&gt;|&lt;interface&gt;[#&lt;port&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#server=[/[&lt;domain&gt;]/[domain/]][&lt;ipaddr&gt;[#&lt;port&gt;][@&lt;source-ip&gt;|&lt;interface&gt;[#&lt;port&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">server=/test.com/192.168.10.117</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">server=/10.168.192.in-addr.arpa/192.168.10.117</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#rev-server=&lt;ip-address&gt;/&lt;prefix-len&gt;,&lt;ipaddr&gt;[#&lt;port&gt;][@&lt;source-ip&gt;|&lt;interface&gt;[#&lt;port&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 将任何属于 &lt;domain&gt; 域名解析成指定的 &lt;ipaddr&gt; 地址。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 也就是将 &lt;domain&gt; 及其所有子域名解析成指定的 &lt;ipaddr&gt; IPv4 或者 IPv6 地址，通常用于屏蔽特定的域名。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 一次只能指定一个 IPv4 或者 IPv6 地址，要同时返回 IPv4 和IPv6 地址，请多次指定 address= 选项。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 注意： /etc/hosts 以及 DHCP 租约将覆盖此项设置。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#address=/&lt;domain&gt;/[domain/][&lt;ipaddr&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#ipset=/&lt;domain&gt;/[domain/]&lt;ipset&gt;[,&lt;ipset&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#mx-host=&lt;mx name&gt;[[,&lt;hostname&gt;],&lt;preference&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#mx-target=&lt;hostname&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># SRV 记录</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#srv-host=&lt;_service&gt;.&lt;_prot&gt;.[&lt;domain&gt;],[&lt;target&gt;[,&lt;port&gt;[,&lt;priority&gt;[,&lt;weight&gt;]]]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># A, AAAA 和 PTR 记录</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#host-record=&lt;name&gt;[,&lt;name&gt;....],[&lt;IPv4-address&gt;],[&lt;IPv6-address&gt;][,&lt;TTL&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># TXT 记录</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#txt-record=&lt;name&gt;[[,&lt;text&gt;],&lt;text&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># PTR 记录</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#ptr-record=&lt;name&gt;[,&lt;target&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#naptr-record=&lt;name&gt;,&lt;order&gt;,&lt;preference&gt;,&lt;flags&gt;,&lt;service&gt;,&lt;regexp&gt;[,&lt;replacement&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># CNAME 别名记录</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#cname=&lt;cname&gt;,&lt;target&gt;[,&lt;TTL&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dns-rr=&lt;name&gt;,&lt;RR-number&gt;,[&lt;hex data&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#interface-name=&lt;name&gt;,&lt;interface&gt;[/4|/6]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#synth-domain=&lt;domain&gt;,&lt;address range&gt;[,&lt;prefix&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#add-mac[=base64|text]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#add-cpe-id=&lt;string&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#add-subnet[[=[&lt;IPv4 address&gt;/]&lt;IPv4 prefix length&gt;][,[&lt;IPv6 address&gt;/]&lt;IPv6 prefix length&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"><font color=\\\"#E30000\\\"># 缓存条数，默认为150条，cache-size=0 禁用缓存。</font></span></div><div style=\\\"font-size: 13px;\\\"><font color=\\\"#E30000\\\"><br/></font></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"><font color=\\\"#E30000\\\">cache-size=1000</font></span></div><div style=\\\"font-size: 13px;\\\"><font color=\\\"#E30000\\\"><br/></font></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"><font color=\\\"#E30000\\\"># 不缓存未知域名缓存，默认情况下dnsmasq缓存未知域名并直接返回为客户端。</font></span></div><div style=\\\"font-size: 13px;\\\"><font color=\\\"#E30000\\\"><br/></font></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"><font color=\\\"#E30000\\\">no-negcache</font></span></div><div style=\\\"font-size: 13px;\\\"><font color=\\\"#E30000\\\"><br/></font></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"><font color=\\\"#E30000\\\"># 指定DNS同属查询转发数量</font></span></div><div style=\\\"font-size: 13px;\\\"><font color=\\\"#E30000\\\"><br/></font></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"><font color=\\\"#E30000\\\">dns-forward-max=1000</font></span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dnssec</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#trust-anchor=[&lt;class&gt;],&lt;domain&gt;,&lt;key-tag&gt;,&lt;algorithm&gt;,&lt;digest-type&gt;,&lt;digest&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dnssec-check-unsigned</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dnssec-no-timecheck</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dnssec-timestamp=&lt;path&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#proxy-dnssec</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dnssec-debug</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#auth-server=&lt;domain&gt;,&lt;interface&gt;|&lt;ip-address&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#auth-zone=&lt;domain&gt;[,&lt;subnet&gt;[/&lt;prefix length&gt;][,&lt;subnet&gt;[/&lt;prefix length&gt;].....]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#auth-zone=&lt;domain&gt;[,&lt;interface name&gt;[/6|/4][,&lt;interface name&gt;[/6|/4].....]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#auth-soa=&lt;serial&gt;[,&lt;hostmaster&gt;[,&lt;refresh&gt;[,&lt;retry&gt;[,&lt;expiry&gt;]]]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#auth-sec-servers=&lt;domain&gt;[,&lt;domain&gt;[,&lt;domain&gt;...]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#auth-peer=&lt;ip-address&gt;[,&lt;ip-address&gt;[,&lt;ip-address&gt;...]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 启用连接跟踪，读取 Linux 入栈 DNS 查询请求的连接跟踪标记，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 并且将上游返回的响应信息设置同样的标记。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 用于带宽控制和防火墙部署。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 此选项必须在编译时启用 conntrack 支持，并且内核正确配置并加载 conntrack。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 此选项不能与 query-port 同时使用。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#conntrack</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># DHCP 选项</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 设置 DHCP 地址池，同时启用 DHCP 功能。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># IPv4 &lt;mode&gt; 可指定为 static|proxy ，当 &lt;mode&gt; 指定为 static 时，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 需用 dhcp-host 手动分配地址池中的 IP 地址。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 当 &lt;mode&gt; 指定为 proxy 时，为指定的地址池提供 DHCP 代理。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-range=[tag:&lt;tag&gt;[,tag:&lt;tag&gt;],][set:&lt;tag&gt;,]&lt;start-addr&gt;[,&lt;end-addr&gt;][,&lt;mode&gt;][,&lt;netmask&gt;[,&lt;broadcast&gt;]][,&lt;lease time&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-range=172.16.0.2,172.16.0.250,255.255.255.0,1h</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-range=192.168.10.150,192.168.10.180,static,255.255.255.0,1h</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 根据 MAC 地址或 id 固定分配客户端的 IP 地址、主机名、租期。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># IPv4 下指定 id:* 将忽略 DHCP 客户端的 ID ，仅根据 MAC 来进行 IP 地址分配。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 在读取 /etc/hosts 的情况，也可以根据 /etc/hosts 中的主机名分配对应 IP 地址。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定 ignore 将忽略指定客户端得 DHCP 请求。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-host=[&lt;hwaddr&gt;][,id:&lt;client_id&gt;|*][,set:&lt;tag&gt;][,&lt;ipaddr&gt;][,&lt;hostname&gt;][,&lt;lease_time&gt;][,ignore]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-hostsfile=&lt;path&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-hostsdir=&lt;path&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 读取 /etc/ethers 文件 与使用 dhcp-host 的作用相同。IPv6 无效。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#read-ethers</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定给 DHCP 客户端的选项信息，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 默认情况下 dnsmasq 将发送：子网掩码、广播地址、DNS 服务器地址、网关地址、域等信息。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定此选项也可覆盖这些默认值并且设置其他选项值。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 重要：可以使用 option:&lt;option-name&gt;或者 option号 来指定。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># &lt;option-name&gt; 和 option号的对应关系可使用命令：</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># dnsmasq --help dhcp 以及 dnsmasq --help dhcp6 查看，这点很重要。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 例如设置网关参数，既可以使用 dhcp-option=3,192.168.4.4 也可以使用 dhcp-option = option:router,192.168.4.4。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 0.0.0.0 意味着当前运行 dnsmasq 的主机地址。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果指定了多个 tag:&lt;tag&gt; 必须同时匹配才行。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># [encap:&lt;opt&gt;,][vi-encap:&lt;enterprise&gt;,][vendor:[&lt;vendor-class&gt;],] 有待继续研究。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-option=[tag:&lt;tag&gt;,[tag:&lt;tag&gt;,]][encap:&lt;opt&gt;,][vi-encap:&lt;enterprise&gt;,][vendor:[&lt;vendor-class&gt;],][&lt;opt&gt;|option:&lt;opt-name&gt;|option6:&lt;opt&gt;|option6:&lt;opt-name&gt;],[&lt;value&gt;[,&lt;value&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-option-force=[tag:&lt;tag&gt;,[tag:&lt;tag&gt;,]][encap:&lt;opt&gt;,][vi-encap:&lt;enterprise&gt;,][vendor:[&lt;vendor-class&gt;],]&lt;opt&gt;,[&lt;value&gt;[,&lt;value&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-optsfile=&lt;path&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-optsdir=&lt;path&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-option=3,1.2.3.4</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-option=option:router,1.2.3.4</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-option=option:router,192.168.10.254</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-option=option:dns-server,192.168.10.254,221.12.1.227,221.12.33.227</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># (IPv4 only) 禁用重用服务器名称和文件字段作为额外的 dhcp-option 选项。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 一般情况下 dnsmasq 从 dhcp-boot 移出启动服务器和文件信息到 dhcp-option 选项中。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 这使得在 dhcp-option 选项封包中有额外的选项空间可用，但是会使老的客户端混淆。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 此选项将强制使用简单并安全的方式来避免此类情况。可以认为是一个兼容性选项。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-no-override</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 配置 DHCP 中继。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># &lt;local address&gt; 是运行 dnsmasq 的接口的 IP 地址。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 所有在 &lt;local address&gt; 接口上接收到的 DHCP 请求将中继到 &lt;server address&gt; 指定的远程 DHCP 服务器。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 可以多次配置此选项，使用同一个 &lt;local address&gt; 转发到多个不同的 &lt;server address&gt; 指定的远程 DHCP 服务器。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># &lt;server address&gt; 仅允许使用 IP 地址，不能使用域名等其他格式。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果是 DHCPv6，&lt;server address&gt; 可以是 ALL_SERVERS 的多播地址 ff05::1:3 。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 在这种情况下必须指定接口 &lt;interface&gt; ，不能使用通配符，用于直接多播到对应的 DHCP 服务器所在的接口。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># &lt;interface&gt; 指定了仅允许接收从 &lt;interface&gt; 接口的 DHCP 服务器相应信息。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-relay=&lt;local address&gt;,&lt;server address&gt;[,&lt;interface&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 设置标签</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-vendorclass=set:&lt;tag&gt;,[enterprise:&lt;IANA-enterprise number&gt;,]&lt;vendor-class&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-userclass=set:&lt;tag&gt;,&lt;user-class&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-mac=set:&lt;tag&gt;,&lt;MAC address&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-circuitid=set:&lt;tag&gt;,&lt;circuit-id&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-remoteid=set:&lt;tag&gt;,&lt;remote-id&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-subscrid=set:&lt;tag&gt;,&lt;subscriber-id&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-match=set:&lt;tag&gt;,&lt;option number&gt;|option:&lt;option name&gt;|vi-encap:&lt;enterprise&gt;[,&lt;value&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tag-if=set:&lt;tag&gt;[,set:&lt;tag&gt;[,tag:&lt;tag&gt;[,tag:&lt;tag&gt;]]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-proxy[=&lt;ip addr&gt;]......</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 不分配匹配这些 tag:&lt;tag&gt; 的 DHCP 请求。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-ignore=tag:&lt;tag&gt;[,tag:&lt;tag&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-ignore-names[=tag:&lt;tag&gt;[,tag:&lt;tag&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-generate-names=tag:&lt;tag&gt;[,tag:&lt;tag&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># IPv4 only 使用广播与匹配 tag:&lt;tag&gt; 的客户端通信。一般用于兼容老的 BOOT 客户端。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-broadcast[=tag:&lt;tag&gt;[,tag:&lt;tag&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># IPv4 only 设置 DHCP 服务器返回的 BOOTP 选项，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># &lt;servername&gt; &lt;server address&gt; 可选，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果未设置服务器名称将设为空，服务器地址设为 dnsmasq 的 IP 地址。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果指定了多个 tag:&lt;tag&gt; 必须同时匹配才行。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果指定 &lt;tftp_servername&gt; 将按照 /etc/hosts 中对应的 IP 地址进行轮询负载均衡。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-boot=[tag:&lt;tag&gt;,]&lt;filename&gt;,[&lt;servername&gt;[,&lt;server address&gt;|&lt;tftp_servername&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 根据不同的类型使用不同的选项。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 使用示例：</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># dhcp-match=set:EFI_x86-64,option:client-arch,9</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># dhcp-boot=tag:EFI_x86-64,uefi/grubx64.efi</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-match=set:EFI_Xscale,option:client-arch,8</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-boot=tag:EFI_Xscale,uefi/grubx64.efi</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-match=set:EFI_BC,option:client-arch,7</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-boot=tag:EFI_BC,uefi/grubx64.efi</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-match=set:EFI_IA32,option:client-arch,6</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-boot=tag:EFI_IA32,uefi/grubx64.efi</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-match=set:Intel_Lean_Client,option:client-arch,5</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-boot=tag:Intel_Lean_Client,uefi/grubx64.efi</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-match=set:Arc_x86,option:client-arch,4</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-boot=tag:Arc_x86,uefi/grubx64.efi</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-match=set:DEC_Alpha,option:client-arch,3</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-boot=tag:DEC_Alpha,uefi/grubx64.efi</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-match=set:EFI_Itanium,option:client-arch,2</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-boot=tag:EFI_Itanium,uefi/grubx64.efi</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-match=set:NEC/PC98,option:client-arch,1</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #dhcp-boot=tag:NEC/PC98,uefi/grubx64.efi</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># dhcp-match=set:Intel_x86PC,option:client-arch,0</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># dhcp-boot=tag:Intel_x86PC,pxelinux.0</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># DHCP 使用客户端的 MAC 地址的哈希值为客户端分配 IP 地址，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 通常情况下即使客户端使自己的租约到期，客户端的 IP 地址仍将长期保持稳定。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 在默认模式下，IP 地址是随机分配的。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 启用 dhcp-sequential-ip 选项将按顺序分配 IP 地址。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 在顺序分配模式下，客户端使租约到期更像是仅仅移动一下 IP 地址。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 在通常情况下不建议使用这种方式。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-sequential-ip</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 多数情况下我们使用 PXE，只是简单的允许 PXE 客户端获取 IP 地址，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 然后 PXE 客户端下载 dhcp-boot 选项指定的文件并执行，也就是 BOOTP 的方式。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 然而在有适当配置的 DHCP 服务器支持的情况下，PXE 系统能够实现更复杂的功能。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service 选项可指定 PXE 环境的启动菜单。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 为不同的类型系统设定不同的启动菜单，并且覆盖 dhcp-boot 选项。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># &lt;CSA&gt; 为客户端系统类型：x86PC, PC98, IA64_EFI, Alpha, Arc_x86, Intel_Lean_Client,</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># IA32_EFI, X86-64_EFI, Xscale_EFI, BC_EFI, ARM32_EFI 和 ARM64_EFI，其他类型可能为一个整数。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># &lt;basename&gt; 引导 PXE 客户端使用 tftp 从 &lt;server address&gt; 或者 &lt;server_name&gt; 下载文件。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 注意：&quot;layer&quot; 后缀 (通常是 &quot;.0&quot;) 由 PXE 提供，也就是 PXE 客户端默认在文件名附加 .0 后缀。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 示例：pxe-service=x86PC, &quot;Install Linux&quot;, pxelinux （读取 pxelinux.0 文件并执行）</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=x86PC, &quot;Install Linux&quot;, pxelinux, 1.2.3.4（不适用于老的PXE）</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># &lt;bootservicetype&gt; 整数，PXE 客户端将通过广播或者通过 &lt;server address&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 或者 &lt;server_name&gt; 搜索对应类型的适合的启动服务。。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 示例：pxe-service=x86PC, &quot;Install windows from RIS server&quot;, 1</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=x86PC, &quot;Install windows from RIS server&quot;, 1, 1.2.3.4</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 未指定 &lt;basename&gt;、&lt;bootservicetype&gt; 或者 &lt;bootservicetype&gt; 为 “0”，将从本地启动。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 示例：pxe-service=x86PC, &quot;Boot from local disk&quot;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=x86PC, &quot;Boot from local disk&quot;, 0</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果指定 &lt;server_name&gt; 将按照 /etc/hosts 中对应的 IP 地址进行轮询负载均衡。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#pxe-service=[tag:&lt;tag&gt;,]&lt;CSA&gt;,&lt;menu text&gt;[,&lt;basename&gt;|&lt;bootservicetype&gt;][,&lt;server address&gt;|&lt;server_name&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 在 PXE 启动后弹出提示，&lt;prompt&gt; 为提示内容，&lt;timeout&gt; 为超时时间，为 0 则立即执行。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果未指定此选项，在有多个启动选项的情况下等待用户选择，不会超时。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#pxe-prompt=[tag:&lt;tag&gt;,]&lt;prompt&gt;[,&lt;timeout&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 根据不同的类型使用不同的菜单，使用示例：</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #pxe-prompt=&quot;What system shall I netboot?&quot;, 120</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># # or with timeout before first available action is taken:</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-prompt=&quot;Press F8 or Enter key for menu.&quot;, 60</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=x86PC, &quot;Now in x86PC (BIOS mode), boot from local&quot;, 0</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=x86PC, &quot;Now in x86PC (BIOS mode)&quot;, pxelinux</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=PC98, &quot;Now in PC98 mode&quot;, PC98</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=IA64_EFI, &quot;Now in IA64_EFI mode&quot;, IA64_EFI</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=Alpha, &quot;Now in Alpha mode&quot;, Alpha</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=Arc_x86, &quot;Now in Arc_x86 mode&quot;, Arc_x86</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=Intel_Lean_Client, &quot;Now in Intel_Lean_Client mode&quot;, Intel_Lean_Client</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=IA32_EFI, &quot;Now in IA32_EFI mode&quot;, IA32_EFI</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=X86-64_EFI, &quot;Now in X86-64_EFI (UEFI mode), boot from local&quot;, 0</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=X86-64_EFI, &quot;Now in X86-64_EFI (UEFI mode)&quot;, grub/grub-x86_64.efi</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=Xscale_EFI, &quot;Now in Xscale_EFI mode&quot;, Xscale_EFI</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># pxe-service=BC_EFI, &quot;Now in BC_EFI mode&quot;, BC_EFI</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># # CentOS7 系统不支持下列两个选项</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #pxe-service=ARM32_EFI,&quot;Now in ARM32_EFI mode&quot;,ARM32_EFI</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># #pxe-service=ARM64_EFI,&quot;Now in ARM64_EFI mode&quot;,ARM64_EFI</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 默认为150，即最多分配150个ip地址出去，最大1000个ip</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-lease-max=150</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># (IPv4 only) 指定DHCP端口，默认为67和68。如果不指定则为1067和1068，单指定一个，第二个加1</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-alternate-port[=&lt;server port&gt;[,&lt;client port&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 谨慎使用此选项，避免 IP 地址浪费。(IPv4 only) 允许动态分配 IP 地址给 BOOTP 客户端。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 注意：BOOTP 客户端获取的 IP 地址是永久的，将无法再次分配给其他客户端。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#bootp-dynamic[=&lt;network-id&gt;[,&lt;network-id&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 谨慎使用此选项。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 默认情况下 DHCP 服务器使用 ping 的方式进行确保 IP 未被使用的情况下将 IP 地址分配出去。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 启用此选项将不使用 ping 进行确认。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#no-ping</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 记录额外的 dhcp 日志，记录所有发送给 DHCP 客户端的选项（option）以及标签（tag）信息</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#log-dhcp</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 禁止记录日常操作日志，错误日志仍然记录。启用 log-dhcp 将覆盖下列选项。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#quiet-dhcp</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#quiet-dhcp6</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#quiet-ra</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 修改 DHCP 默认租约文件路径，默认情况下无需修改</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># (IPv6 only)</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-duid=&lt;enterprise-id&gt;,&lt;uid&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-script=&lt;path&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-luascript=&lt;path&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-scriptuser=root</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#script-arp</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#leasefile-ro</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#bridge-interface=&lt;interface&gt;,&lt;alias&gt;[,&lt;alias&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 给 DHCP 服务器指定 domain 域名信息，也可以给对应的 IP 地址池指定域名。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 直接指定域名</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 示例：domain=thekelleys.org.uk</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 子网对应的域名</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 示例：domain=wireless.thekelleys.org.uk,192.168.2.0/24</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># ip范围对应的域名</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 示例：domain=reserved.thekelleys.org.uk,192.68.3.100,192.168.3.200</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#domain=&lt;domain&gt;[,&lt;address range&gt;[,local]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 在默认情况下 dnsmasq 插入普通的客户端主机名到 DNS 中。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 在这种情况下主机名必须唯一，即使两个客户端具有不同的域名后缀。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果第二个客户端使用了相同的主机名，DNS 查询将自动更新为第二个客户端的 IP 地址。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果设置了 dhcp-fqdn 选项，普通的主机名将不再插入到 DNS 中去，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 仅允许合格的具有域名后缀的主机名插入到 DNS 服务器中。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定此选项需同时指定不含 &lt;address range&gt; 地址范围的 domain 选项。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-fqdn</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 通常情况下分配 DHCP 租约后，dnsmasq 设置 FQDN 选项告诉客户端不要尝试 DDNS 更新主机名与 IP 地址。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 这是因为 name-IP 已自动添加到 dnsmasq 的 DNS 视图中的。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 设置此选项将允许客户端 DDNS 更新，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 在 windows 下允许客户端更新 windows AD 服务器是非常有用的。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 参看 RFC 4702 。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#dhcp-client-update</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#enable-ra</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#ra-param=&lt;interface&gt;,[high|low],[[&lt;ra-interval&gt;],&lt;router lifetime&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># TFTP 选项</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">##############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 对于绝大多数的配置，仅需指定 enable-tftp 和 tftp-root 选项即可。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 是否启用内置的 tftp 服务器，可以指定多个逗号分隔的网络接口</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#enable-tftp[=&lt;interface&gt;[,&lt;interface&gt;]]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#enable-tftp</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#enable-tftp=enp3s0,lo</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定 tftp 的根目录，也就是寻找传输文件时使用的相对路径，可以附加接口，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tftp-root=&lt;directory&gt;[,&lt;interface&gt;]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tftp-root=/var/lib/tftpboot/</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果取消注释，那么即使指定的 tftp-root 无法访问，仍然启动 tftp 服务。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tftp-no-fail</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 附加客户端的 IP 地址作为文件路径。此选项仅在正确设置了 tftp-root 的情况下可用，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 示例：如果 tftp-root=/tftp，客户端为 192.168.1.15 请求 myfile.txt 文件时，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 将优先请求 /tftp/192.168.1.15/myfile.txt 文件， 其次是 /tftp/myfile.txt 文件。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 感觉没什么用。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tftp-unique-root</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 启用安全模式，启用此选项，仅允许 tftp 进程访问属主为自己的文件。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 不启用此选项，允许访问所有 tftp 进程属主可读取的文件。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果 dnsmasq 是以 root 用户运行，tftp-secure 选项将允许访问全局可读的文件。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 一般情况下不推荐以 root 用户运行 dnsmasq。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 在指定了 tftp-root 的情况下并不是很重要。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tftp-secure</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 将所有文件请求转换为小写。对于 Windows 客户端来说非常有用，建议开启此项。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 注意：dnsmasq 的 TFTP 服务器总是将文件路径中的“\\\\”转换为“/”。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tftp-lowercase</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 允许最大的连接数，默认为 50 。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果将连接数设置的很大，需注意每个进程的最大文件描述符限制，详见文档手册。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tftp-max=&lt;connections&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tftp-max=50</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 设置传输时的 MTU 值，建议不设置或按需设置。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 如果设定的值大于网络接口的 MTU 值，将按照网络接口的 MTU 值自动分片传输（不推荐）。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tftp-mtu=&lt;mtu size&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 停止 tftp 服务器与客户端协商 &quot;blocksize&quot; 选项。启用后，防止一些古怪的客户端出问题。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tftp-no-blocksize</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 指定 tftp 的连接端口的范围，方便防火墙部署。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># tftp 侦听在 69/udp ，连接端口默认是由系统自动分配的，</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\"># 非 root 用户运行时指定的连接端口号需大于 1025 最大 65535。</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#tftp-port-range=&lt;start&gt;,&lt;end&gt;</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">###############################################################################</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#conf-dir=&lt;directory&gt;[,&lt;file-extension&gt;......]</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#conf-file=/etc/dnsmasq.more.conf</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">conf-dir=/etc/dnsmasq.d</span></div><div style=\\\"font-size: 13px;\\\"><br/></div><div style=\\\"font-size: 13px;\\\"><span style=\\\"font-size: inherit; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: rgb(51, 51, 51); line-height: 1.42857; background-color: transparent; box-sizing: border-box; padding: 0px; border-radius: 0px; white-space: pre;\\\">#servers-file=&lt;file&gt;</span></div></div></div></div></div></div></div></div></div></div></div></div></div><div><br/></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":175394}]"
metadata_diff: {"new":{"id":"c3c58507e59045d3900be95ed7eeb28b","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345781234,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:20:15.940Z
created_time: 2025-11-28T16:20:15.940Z
type_: 13