/ openresolv / Configuration

Configuration

/etc/resolvconf.conf is the openresolv’s configuration file. The out of the box default just talks to libc. If you have a resolver other than libc installed, you will need to configure three variables. Below is a sample configuration for dnsmasq, pdns_recursor and named resolvers.

# Use the local name server
name_servers="127.0.0.1"

# If don't want to forward the root zone and let the local resolver
# recursively query the root servers directly,
# simply mark all interfaces private.
# You may need to do this if you enable DNSSEC in the local resolver but the
# upstream DNS servers say from your router or ISP don't support DNSSEC.
#private_interfaces="*"

# Write out dnsmasq extended configuration and resolv files
dnsmasq_conf=/etc/dnsmasq-conf.conf
dnsmasq_resolv=/etc/dnsmasq-resolv.conf

# Modify the pdnsd configuration file
pdnsd_conf=/etc/pdnsd.conf

# Write out PowerDNS Recursor forward zones file
pdns_zones=/etc/recursor-zones.conf

# Write out named extended configuration and zone files
named_options=/etc/namedb/resolvconf-options.conf
named_zones=/etc/namedb/resolvconf-zones.conf

# Write out unbound configuration file
unbound_conf=/etc/unbound-resolvconf.conf

You then need to configure your resolver to use these files.