aboutsummaryrefslogtreecommitdiff
path: root/dns/unbound/files
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2014-03-04 15:51:44 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2014-03-04 15:51:44 +0000
commitaf1034a1fecdae5fe3891d2c4db78c969f47243f (patch)
tree4c3a2372e72d15320bc4fa977e991b5a01ce034c /dns/unbound/files
parent34a51291edc911c8be263530106e76010d92b9e3 (diff)
downloadports-af1034a1fecdae5fe3891d2c4db78c969f47243f.tar.gz
ports-af1034a1fecdae5fe3891d2c4db78c969f47243f.zip
Notes
Diffstat (limited to 'dns/unbound/files')
-rw-r--r--dns/unbound/files/unbound.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/dns/unbound/files/unbound.in b/dns/unbound/files/unbound.in
index 43439d898fd7..1724ee62a912 100644
--- a/dns/unbound/files/unbound.in
+++ b/dns/unbound/files/unbound.in
@@ -7,6 +7,9 @@
# copy this to /etc/rc.d/unbound
# and put unbound_enable="YES" into rc.conf
#
+# unbound_anchorflags can be used to allow you to pass a custom flags to
+# unbound-anchor. Examples include a custom resolv.conf (-f) or a custom
+# root.hints (-r). Useful for when /etc/resolv.conf only contains 127.0.0.1
# PROVIDE: unbound
# REQUIRE: SERVERS cleanvar
@@ -26,12 +29,13 @@ load_rc_config $name
pidfile=${unbound_pidfile:-"%%PREFIX%%/etc/unbound/unbound.pid"}
unbound_enable=${unbound_enable:-"NO"}
+unbound_anchorflags=${unbound_anchorflags:-""}
start_precmd()
{
%%PREFIX%%/sbin/unbound-checkconf > /dev/null && \
echo -n "Obtaining a trust anchor:" && \
- su -m unbound -c %%PREFIX%%/sbin/unbound-anchor && \
+ su -m unbound -c %%PREFIX%%/sbin/unbound-anchor ${unbound_anchorflags} && \
echo .
}