Current time: 11-15-2024, 05:00 PM 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
FrE Offline


Posts: 1
Joined: Aug 2010
Reputation: 0
Post: #2
RE: Disable DNS Patch
It's working perfectly... A patch would be great!
(This post was last modified: 09-30-2010 05:30 AM by FrE.)
09-30-2010 05:30 AM
Find all posts by this user Quote this message in a reply
jakub.artur Offline
Junior Member
*

Posts: 30
Joined: Sep 2010
Reputation: 0
Post: #3
RE: Disable DNS Patch
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
04-21-2011 05:58 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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