{"id":354,"date":"2009-11-28T07:47:14","date_gmt":"2009-11-28T11:47:14","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=354"},"modified":"2013-03-30T06:49:44","modified_gmt":"2013-03-30T10:49:44","slug":"error-unable-to-create-the-domain-because-a-dns-record-exists","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/error-unable-to-create-the-domain-because-a-dns-record-exists","title":{"rendered":"Error: Unable to create the domain because a DNS record exists"},"content":{"rendered":"<p><strong>Error:<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>Error message &#8220;Error: Unable to create the domain example.com because a DNS record pointing to the host example.com already exists.&#8221;<\/strong><\/span><\/p><\/blockquote>\n<p>The error message is displayed when you add a domain from Plesk control panel and it fails. The reason <strong>it fails is because the DNS records of the domain already exist in the psa database.<\/strong> The <span style=\"color: #0000ff;\"><strong>tables dns_recs and dns_zone holds the DNS records<\/strong><\/span> for a domain.<\/p>\n<p>In order to add the domain example.com, you will have to remove the DNS entries from the tables dns_recs and dns_zone.<\/p>\n<p><strong>1) Goto Mysql prompt:<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>root@host [~]# mysql -uadmin -p `cat \/etc\/psa\/.psa.shadow`<\/strong><\/span><\/p><\/blockquote>\n<p><strong>2) Use the psa database<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>mysql&gt;\u00a0 use psa;<\/strong><\/span><\/p><\/blockquote>\n<p><strong>3) Remove the DNS entries from the dns_recs and dns_zone tables:<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>mysql&gt; delete from dns_recs where dns_zone_id=10;<br \/>\nmysql&gt; delete from dns_zone where id=10;<\/strong><\/span><\/p><\/blockquote>\n<p>where, 10 is the dns_zone_id of the domain example.com.<\/p>\n<p><strong>4) Restart the mysql service:<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>root@host [~]# service mysqld restart<\/strong><\/span><\/p><\/blockquote>\n<p>You should now be able to add the domain from Plesk control panel successfully.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error:<br \/>\nError message &#8220;Error: Unable to create the domain example.com because a DNS record pointing to the host example.com already exists.&#8221;<br \/>\nThe error message is displayed when you add a domain from Plesk control panel and it fails. The reason it fails is because the DNS records of the domain already exist in the psa database. The tables dns_recs and dns_zone holds the DNS records for a domain.<br \/>\nIn order to add the domain example.com, you will have to remove the DNS entries from the tables dns_recs and dns_zone.<br \/>\n1) Goto Mysql [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[464,459,460,461,465,462,458,463],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/354"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=354"}],"version-history":[{"count":3,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/354\/revisions"}],"predecessor-version":[{"id":356,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/354\/revisions\/356"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}