0

Do these dnsmasq options conflict? The router wants to write resolv-file to the config, but allows me to append no-resolv. Will dnsmasq agree to ignore resolv-file in this case?

resolv-file=/tmp/resolv.dnsmasq
no-resolv
joeforker
  • 2,399
  • 4
  • 26
  • 35

1 Answers1

1

Will dnsmasq agree to ignore resolv-file in this case?

Checking dnsmasq 2.76 source,

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 will check if OPT_NO_RESOLV (no-resolv option) is enabled. If so, and resolv_file is set and not its default value, it'll set resolv_file to NULL and emit a warning.

So, yeah, dnsmasq will ignore resolv-file if no-resolv is set.

mforsetti
  • 2,666
  • 2
  • 16
  • 20