Current time: 05-05-2024, 07:27 AM Hello There, Guest! (LoginRegister)


Post Reply 
Disable DNS Patch
Author Message
hxbro Offline
Junior Member
*

Posts: 34
Joined: Feb 2007
Reputation: 0
Post: #1
Disable DNS Patch
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.


Attached File(s)
.zip  ispcp-disabledns.v0.0.1.zip (Size: 136.47 KB / Downloads: 25)
(This post was last modified: 04-16-2010 05:23 AM by hxbro.)
04-16-2010 05:17 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Disable DNS Patch - hxbro - 04-16-2010 05:17 AM
RE: Disable DNS Patch - FrE - 09-30-2010, 05:30 AM
RE: Disable DNS Patch - jakub.artur - 04-21-2011, 05:58 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)