unbound does not append the local domain to the request
any more (like dnsmasq did). Therefore, the client needs
to do that if desired.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
etc/issue
etc/login.defs
etc/rc.d/init.d/dhcp
+etc/rc.d/init.d/localnet
etc/rc.d/init.d/network
etc/rc.d/init.d/networking/red.down/05-update-dns-forwarders
etc/rc.d/init.d/networking/red.up/05-update-dns-forwarders
. /etc/sysconfig/rc
. ${rc_functions}
+write_resolv_conf() {
+ (
+ [ -n "${DOMAINNAME}" ] && echo "search ${DOMAINNAME}"
+ echo "nameserver 127.0.0.1"
+ ) > /etc/resolv.conf
+}
+
case "${1}" in
start)
eval $(/usr/local/bin/readhash /var/ipfire/main/settings)
domainname ${DOMAINNAME}
evaluate_retval
fi
+
+ # Update resolv.conf
+ write_resolv_conf
;;
stop)