mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
Swap stub-zone for forward-zone
stub-zone doesn't work for non-authorative upstream DNS servers, but forward-zone does.
This commit is contained in:
parent
a3ff635dc6
commit
90efc01809
@ -486,12 +486,12 @@ function unbound_add_domain_overrides($pvt = false)
|
||||
$domain_entries .= "local-zone: \"$domain\" typetransparent\n";
|
||||
}
|
||||
} else {
|
||||
$domain_entries .= "stub-zone:\n";
|
||||
$domain_entries .= "forward-zone:\n";
|
||||
$domain_entries .= "\tname: \"$domain\"\n";
|
||||
foreach ($ips as $ip) {
|
||||
$domain_entries .= "\tstub-addr: $ip\n";
|
||||
$domain_entries .= "\tforward-addr: $ip\n";
|
||||
}
|
||||
$domain_entries .= "\tstub-prime: no\n";
|
||||
//$domain_entries .= "\tstub-prime: no\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user