MyNixOS website logo
option

services.dnsmasq.settings

Configuration of dnsmasq. Lists get added one value per line (empty lists and false values don't get added, though false values get turned to comments). Gets merged with

{
  dhcp-leasefile = "/var/lib/dnsmasq/dnsmasq.leases";
  conf-file = optional cfg.resolveLocalQueries "/etc/dnsmasq-conf.conf";
  resolv-file = optional cfg.resolveLocalQueries "/etc/dnsmasq-resolv.conf";
}
Declarations
Type
attribute set of (atom (null, bool, int, float or string) or a list of them for duplicate keys)
Default
{ }
Example
{
  domain-needed = true;
  dhcp-range = [ "192.168.0.2,192.168.0.254" ];
}