ispCP - Board - Support
Disable DNS Patch - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Enhancements (/forum-43.html)
+--- Thread: Disable DNS Patch (/thread-10418.html)



Disable DNS Patch - hxbro - 04-16-2010 05:17 AM

Hi,

Attached is an untested* set of files based on 1.0.5 that allows you to completely disable dns for a domain so no entry in named.conf or the domain.db file. This for me is important functionality as I have several domains where I don't host the domain, just the website, so in the past I've had to break the dns file for the domain so it doesn't load or setup mx to make mail get delivered to the right host correctly

* It appears to work ok adding/editing a user when you are reseller. I haven't tested the rest of the code e.g. hosting plans, admin edit, orders etc, so use at your own risk, but if you find a bug feel free to report it and I'll see if I can fix it.

You should be able to just copy the files over the existing files of a 1.0.5 install, you will need to do the following update to the database too:

ALTER TABLE `ispcp`.`domain` ADD COLUMN `domain_disabledns` VARCHAR(15) NOT NULL DEFAULT 'no' AFTER `domain_dns`;

There's missing functionality e.g. for aliases or sub domains so it might break there if you try use it with them!

Also to delete a domain you need to re-enable the dns, then delete the domain.

Hopefully it's of use to other people.


RE: Disable DNS Patch - FrE - 09-30-2010 05:30 AM

It's working perfectly... A patch would be great!


RE: Disable DNS Patch - jakub.artur - 04-21-2011 05:58 PM

hi
I give the hosting plan and the disabled dns error when I added a new domain

PHP Code:
abc.com Set status to 'change'
del_file() | ERRORFile '/etc/ispcp/bind/working/abc.com.db' does not exist 


only works on already existing domain
the new domain does not work