diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-12-30 23:10:44 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-12-30 23:14:04 -0600 |
commit | 36dbc3ae37c85e4d19c5ce1518bd82a370368602 (patch) | |
tree | 3793c328a7921e467fc3f0722e93815e70c57cf1 | |
parent | 7b43825e78760c02728dd1d5c123f933f38f6e85 (diff) | |
download | pfsense-36dbc3ae37c85e4d19c5ce1518bd82a370368602.zip pfsense-36dbc3ae37c85e4d19c5ce1518bd82a370368602.tar.gz |
Reload Unbound after IP changes, to fix issues noted in Ticket #4095. Do so before Dynamic DNS updates occur to ensure the host has functioning DNS.
-rwxr-xr-x | etc/rc.newwanip | 3 | ||||
-rwxr-xr-x | etc/rc.newwanipv6 | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 56c2453..b533ae4 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -210,6 +210,9 @@ if (!is_ipaddr($oldip) || $curwanip != $oldip || !is_ipaddrv4($config['interface /* reconfigure our gateway monitor */ setup_gateways_monitor(); + + /* reload unbound */ + services_unbound_configure(); if (is_ipaddr($curwanip)) @file_put_contents("{$g['vardb_path']}/{$interface}_cacheip", $curwanip); diff --git a/etc/rc.newwanipv6 b/etc/rc.newwanipv6 index c390234..e31274b 100755 --- a/etc/rc.newwanipv6 +++ b/etc/rc.newwanipv6 @@ -162,6 +162,10 @@ if (is_ipaddrv6($oldipv6)) { file_put_contents("{$g['vardb_path']}/{$interface}_cacheipv6", $curwanipv6); } + +/* reload unbound */ +services_unbound_configure(); + /* perform RFC 2136 DNS update */ services_dnsupdate_process($interface); |