Commit 1a02132f authored by wyrie's avatar wyrie
Browse files

Implemented: FS#1009 - ptr records powerdns plugin

parent 2d870d2e
...@@ -213,22 +213,16 @@ class powerdns_plugin { ...@@ -213,22 +213,16 @@ class powerdns_plugin {
$type = $data["new"]["type"]; $type = $data["new"]["type"];
switch ($type) { if(substr($data["new"]["name"], -1) == '.'){
case "PTR": $name = substr($data["new"]["name"], 0, -1);
$name = $data["new"]["name"]; } else {
break; if($data["new"]["name"] == ""){
default: $name = $origin;
if(substr($data["new"]["name"], -1) == '.'){ } else {
$name = substr($data["new"]["name"], 0, -1); $name = $data["new"]["name"].'.'.$origin;
} else { }
if($data["new"]["name"] == ""){
$name = $origin;
} else {
$name = $data["new"]["name"].'.'.$origin;
}
}
if($name == '') $name = $origin;
} }
if($name == '') $name = $origin;
switch ($type) { switch ($type) {
case "CNAME": case "CNAME":
......
Supports Markdown
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