这些 dnsmasq 选项是否冲突?路由器想要写入resolv-file
配置,但允许我附加no-resolv
。在这种情况下dnsmasq
同意忽略吗?resolv-file
resolv-file=/tmp/resolv.dnsmasq
no-resolv
答案1
在这种情况下,dnsmasq 会同意忽略 resolv-file 吗?
检查dnsmasq
2.76来源,
if (daemon->port != 0 && option_bool(OPT_NO_RESOLV))
{
if (daemon->resolv_files && !daemon->resolv_files->is_default)
my_syslog(LOG_WARNING, _("warning: ignoring resolv-file flag because no-resolv is set"));
daemon->resolv_files = NULL;
dnsmasq
将检查OPT_NO_RESOLV
(no-resolv
选项) 是否已启用。如果已启用,并且resolv_file
已设置且不是其默认值,则它将设置resolv_file
为NULL
并发出警告。
是的,如果设置了的话dnsmasq
将会忽略。resolv-file
no-resolv