Commit 51b6f4df authored by Davide `rainbow` Gerhard's avatar Davide `rainbow` Gerhard Committed by Franco Fichtner

add local-zone typetransparent for ptr zone; closes #1673

parent 9398670a
......@@ -508,6 +508,9 @@ function unbound_add_domain_overrides($pvt = false)
if ($pvt == true) {
$domain_entries .= "private-domain: \"$domain\"\n";
$domain_entries .= "domain-insecure: \"$domain\"\n";
if (preg_match('/.+\.in-addr\.arpa\.?$/', $domain)) {
$domain_entries .= "local-zone: \"$domain\" typetransparent\n";
}
} else {
$domain_entries .= "stub-zone:\n";
$domain_entries .= "\tname: \"$domain\"\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment