diff --git a/scripts/index.php b/scripts/index.php new file mode 100644 index 0000000..601993a --- /dev/null +++ b/scripts/index.php @@ -0,0 +1,24 @@ +print(); +} +else +{ + ?> + +
+ + \ No newline at end of file diff --git a/scripts/unbound_conf.php b/scripts/unbound_conf.php new file mode 100644 index 0000000..e8a57d8 --- /dev/null +++ b/scripts/unbound_conf.php @@ -0,0 +1,55 @@ + $value) + { + $value = trim($value, " \t\n\r\0\x0B"); + if (substr($value, 0,1) == "#") + { + $content = $value; + } + elseif (substr($value, 0,1) == "*") + { + $value = ltrim($value, '*'); + $value = ltrim($value, '.'); + + $content = "# ------ Wildcard replaced with local-zone data ------ #" . PHP_EOL; + $content = $content . 'local-zone: "' . $value . '" redirect' . PHP_EOL; + $content = $content . 'local-data: "' . $value . ' A ' . $server . '"' . PHP_EOL; + $content = $content . "# ---------------------------------------------------- #"; + } + else + { + $content = 'local-data: "' . $value . ' A ' . $server . '"'; + } + echo $content; + echo PHP_EOL; + } + echo PHP_EOL; + echo PHP_EOL; + } + } +} + +?> \ No newline at end of file