diff options
author | Warren Baker <warren@decoy.co.za> | 2011-10-02 00:56:02 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2011-10-02 00:56:02 +0200 |
commit | 0f2bd251aa0b3a6d33c83ba2d5c0bab6e8c004b6 (patch) | |
tree | e105786cad455db04549287d26572e7248d37fe2 /etc/inc/unbound.inc | |
parent | 8c87758e3e1e2250fa700dcb032c444afcfd992b (diff) | |
download | pfsense-0f2bd251aa0b3a6d33c83ba2d5c0bab6e8c004b6.zip pfsense-0f2bd251aa0b3a6d33c83ba2d5c0bab6e8c004b6.tar.gz |
Add some timeouts
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r-- | etc/inc/unbound.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc index 47521d9..f2709c0 100644 --- a/etc/inc/unbound.inc +++ b/etc/inc/unbound.inc @@ -139,7 +139,7 @@ function unbound_fetch_root_hints() { $hints = "{$g['unbound_chroot_path']}/etc/root.hints"; if (@filesize($hints) == 0 ) { - $returnvar = mwexec("/usr/bin/dig +tcp +nocmd +answer @`/usr/bin/dig +nocmd +noall +answer +short . NS | /usr/bin/head -1` . NS > {$hints}"); + $returnvar = mwexec("/usr/bin/dig +tcp +nocmd +answer +time=1 +tries=1 +retry=1 @`/usr/bin/dig +nocmd +noall +answer +short +time=1 +tries=1 +retry=1 . NS | /usr/bin/head -1` . NS > {$hints}"); if ($returnvar != 0) { mwexec("/bin/rm -f {$hints}"); |