From cb56e7709325169621e4aadddee2cbc6be31f008 Mon Sep 17 00:00:00 2001 From: thms Date: Fri, 4 Nov 2016 12:00:24 +0100 Subject: [PATCH] m_dom now refuses cname on its apex --- bureau/class/m_dom.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bureau/class/m_dom.php b/bureau/class/m_dom.php index 2d6b9540..5de82d43 100644 --- a/bureau/class/m_dom.php +++ b/bureau/class/m_dom.php @@ -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; }