From: Matthijs Kooijman Date: Thu, 9 Oct 2008 18:28:45 +0000 (+0000) Subject: dnsmasq: Add dnsmasq configuration. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fservers%2Fdrsnuggles.git;a=commitdiff_plain;h=01705e5a0e17989e878a2b06e97caac2a12b042d dnsmasq: Add dnsmasq configuration. This configuration resolves from the local /etc/hosts file and forwards requests it cannot resolve by itself to upstream dns servers. --- diff --git a/etc/dnsmasq.conf b/etc/dnsmasq.conf new file mode 100644 index 0000000..933f2d5 --- /dev/null +++ b/etc/dnsmasq.conf @@ -0,0 +1,49 @@ +# See "/usr/sbin/dnsmasq --help" or /usr/share/doc/dnsmasq/examples for help on +# the options. +# +# In short, this file configures dnsmasq to use /etc/hosts for resolution of +# local names and forward the rest to a set of upstream DNS servers. + +# Never forward plain names (without a dot or domain part) +domain-needed +# Never forward (reverse queries for) addresses in the non-routed address spaces. +bogus-priv + +# Only answer queries in this domain from local sources. +local=/.drsnuggles.stderr.nl/ + +# Don't get upstream servers from resolv.conf, but use the ones listed here +no-resolv +server=193.202.115.202 +server=195.85.225.170 +server=195.3.164.19 +server=193.202.115.142 + +# Answer queries from our /etc/hosts file +expand-hosts + +# This domain is appended to the short names from /etc/hosts +domain=drsnuggles.stderr.nl + +# These options might be useful later on + +# Set the cachesize here. +#cache-size=150 + +# If you want to disable negative caching, uncomment this. +#no-negcache + +# Normally responses which come form /etc/hosts and the DHCP lease +# file have Time-To-Live set as zero, which conventionally means +# do not cache further. If you are happy to trade lower load on the +# server for potentially stale date, you can set a time-to-live (in +# seconds) here. +#local-ttl= + +# For debugging purposes, log each DNS query as it passes through +# dnsmasq. +# log-queries + +# Include a another lot of configuration options. +#conf-file=/etc/dnsmasq.more.conf +#conf-dir=/etc/dnsmasq.d