We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://superuser.com/questions/570082/in-etc-resolv-conf-what-exactly-does-the-search-configuration-option-do
简单来说,当待查询的域名里不包含点时,则依次自动添加预定义的后缀并查询,直到返回结果。
例如查询域名为 nas,定义的后缀为 local, foo.ts.net,则依次查询
nas
local
foo.ts.net
nas nas.local nas.foo.ts.net
直到返回结果为止,这对使用 tailscale 等协议组网的用户特别方便。
在上述示例中,只需将应用程序中的域名配置为 nas,即可在各种网络环境下通用:
The text was updated successfully, but these errors were encountered:
目前找到的一种替代方案是在 DHCP 服务器(如 dnsmasq)通过 domain-search 选项设置备选后缀,从而让客户端查询 DNS 时自行处理 https://github.com/imp/dnsmasq/blob/770bce967cfc9967273d0acfb3ea018fb7b17522/dnsmasq.conf.example#L412
domain-search
Sorry, something went wrong.
smartdns采用的是穷举法。 简单来说,就是已知/未知区别。
已知,就穷举。 未知,就是默认DNS组的事了。
No branches or pull requests
https://superuser.com/questions/570082/in-etc-resolv-conf-what-exactly-does-the-search-configuration-option-do
简单来说,当待查询的域名里不包含点时,则依次自动添加预定义的后缀并查询,直到返回结果。
例如查询域名为
nas
,定义的后缀为local
,foo.ts.net
,则依次查询直到返回结果为止,这对使用 tailscale 等协议组网的用户特别方便。
在上述示例中,只需将应用程序中的域名配置为
nas
,即可在各种网络环境下通用:The text was updated successfully, but these errors were encountered: