diff --git a/interface/web/dns/dns_edit_base.php b/interface/web/dns/dns_edit_base.php index f12c38e81845911614f3192144ffa165f544e987..b9ce121cf638fc6ea7ec49633e0ac44744bb7bab 100644 --- a/interface/web/dns/dns_edit_base.php +++ b/interface/web/dns/dns_edit_base.php @@ -116,6 +116,8 @@ class dns_page_action extends tform_actions { // Replace @ to example.com. if(stristr($this->dataRecord["name"], '@')) { $this->dataRecord["name"] = str_replace('@', $soa['origin'], $this->dataRecord["name"]); + if($this->dataRecord["name"] === '@') { + $this->dataRecord["name"] = $soa['origin']; } // Replace * to *.example.com.