m_dom now refuses cname on its apex

This commit is contained in:
thms 2016-11-04 12:00:24 +01:00
parent 1dc41d5530
commit cb56e77093
1 changed files with 4 additions and 0 deletions

View File

@ -1353,6 +1353,10 @@ class m_dom {
}
}
// Forbidden to create a CNAME RR on the domain APEX (RFC 1912)
if ($type == 'cname' && $sub == '')
return false;
// All is right, go ! Create ur domain !
return true;
}