Commit 349272c2 authored by Florian Schaal's avatar Florian Schaal

vm: use type AAAA for ipv6 in createDNS

parent 98d600f4
......@@ -252,7 +252,7 @@ class vm_openvz_plugin {
"server_id" => $server_id,
"zone" => $dns_soa_id,
"name" => $hostname,
"type" => 'A',
"type" => @(preg_match("/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/", $ip_address))?'A':'AAAA',
"data" => $ip_address,
"aux" => '0',
"ttl" => '3600',
......
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