diff --git a/examples/var_service/dnsmasq/README b/examples/var_service/dnsmasq/README new file mode 100644 index 000000000..a20740d6e --- /dev/null +++ b/examples/var_service/dnsmasq/README @@ -0,0 +1,10 @@ +Local DNS cache service. + +This service is useful if you have more than 3 DNS servers, +or if you need a finer-grained control of which servers +can serve which domain. + +To make programs use local DNS server, make sure +/etc/resolv.conf says: + +nameserver 127.0.0.1 diff --git a/examples/var_service/dnsmasq/dnsmasq.conf b/examples/var_service/dnsmasq/dnsmasq.conf new file mode 100644 index 000000000..2cfb0fe81 --- /dev/null +++ b/examples/var_service/dnsmasq/dnsmasq.conf @@ -0,0 +1,76 @@ +keep-in-foreground + +# "-" is stderr: +log-facility=- + +# May also try log-queries=extra +log-queries + +# No param = pidfile disabled: +pid-file + +interface=lo +listen-address=127.0.0.1 +bind-interfaces + +cache-size=999 + +servers-file=/etc/dnsmasq_servers.conf + +# Don’t read /etc/resolv.conf and /etc/hosts: +no-resolv +#no-hosts + +# All reverse lookups for private IP ranges (ie 192.168.x.x, etc) +# which are not found in /etc/hosts or the DHCP leases file are +# answered with "no such domain" rather than being forwarded +# upstream. The set of prefixes affected is the list given in +# RFC6303. +#bogus-priv + +#−T, --local-ttl=