Current time: 12-23-2024, 03:13 AM Hello There, Guest! (LoginRegister)


Post Reply 
Manual lines in DNS zone file
Author Message
Blondak Offline
Junior Member
*****
Dev Team

Posts: 84
Joined: May 2008
Reputation: 5
Post: #1
Manual lines in DNS zone file
Hi,
i've created fast patch for ISPCP to support "user" data in DNS zone file.
You need to create table

CREATE TABLE IF NOT EXISTS `domain_dns` (
`domain_dns_id` int(11) NOT NULL auto_increment,
`domain_id` int(11) NOT NULL,
`alias_id` int(11) default NULL,
`domain_dns` varchar(50) NOT NULL,
`domain_class` enum('IN','CH','HS') NOT NULL default 'IN',
`domain_type` enum('A','AAAA','CERT','CNAME','DNAME','GPOS','KEY','KX','MX','NAPTR','NSAP','NS​','NXT','PTR','PX','SIG','SRV','TXT') NOT NULL default 'A',
`domain_text` varchar(128) NOT NULL,
PRIMARY KEY (`domain_dns_id`)
);

ALTER TABLE `domain` ADD `domain_dns` VARCHAR( 15 ) NOT NULL DEFAULT 'no';

This is first version that don't have GUI, admin must be carefull when playing with this!
If you want create record for domain leave alias_id = NULL, and if you want create entry for domain alias you must enter booth domain_id and alias_id

(0, 1, 1, 'adsl', 'IN', 'A', 'xxx.xxx.xxx.xxx') => will add line "adsl IN A xxx.xxx.xxx.xxx" in zone file
(0, 1, 1, 'crm', 'IN', 'CNAME', 'dmz.domain.cz.') => will add line "crm IN CNAME dmz.domain.cz." in zone file
(0, 2, NULL, '_jabber._tcp 86400', 'IN', 'SRV', '5 0 5269 jabber.domain.cz.') => will add line "_jabber._tcp 86400 IN SRV 5 0 5269 jabber.domain.cz."

I have plans to make GUI with validate checking, but this i need, because some of my users needs extra data in DNS and when user update domain, they disappear.
Add config option "Manual DNS support" for Hosting plan and domain (for later use, not done yet)

PS:
sorry for my bad english and sorry for my perl skills Smile i don't know it.


Attached File(s)
.txt  basic-dns-support.txt (Size: 26.29 KB / Downloads: 210)
(This post was last modified: 07-18-2008 03:57 AM by Blondak.)
07-10-2008 08:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
nuno Offline
Junior Member
*

Posts: 92
Joined: Jun 2008
Reputation: 1
Post: #2
RE: Manual lines in DNS zone file
Hi, feedbacks for dev-team? about this patch!
07-12-2008 05:28 AM
Find all posts by this user Quote this message in a reply
Blondak Offline
Junior Member
*****
Dev Team

Posts: 84
Joined: May 2008
Reputation: 5
Post: #3
RE: Manual lines in DNS zone file
some screens from GUI (not completed yet)


.png  1.png (Size: 8.96 KB / Downloads: 585)

.png  2.png (Size: 30.21 KB / Downloads: 434)

.png  3.png (Size: 17.42 KB / Downloads: 428)
07-18-2008 01:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
nuno Offline
Junior Member
*

Posts: 92
Joined: Jun 2008
Reputation: 1
Post: #4
RE: Manual lines in DNS zone file
Blondak Wrote:some screens from GUI (not completed yet)


Fantastic Smile
Congrats
07-18-2008 01:24 AM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #5
RE: Manual lines in DNS zone file
looks cool so far.

Sry we did not react so far.
If you've a complete patch which is somewhat tested we see if we can integrate it in the main source.

One important point would be to have some kind of on/off like there's for php/cgi on a per domain basis.
We're busy with getting rc6 stable asap - thats why not much time is spent with other things atm.
07-18-2008 06:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Blondak Offline
Junior Member
*****
Dev Team

Posts: 84
Joined: May 2008
Reputation: 5
Post: #6
RE: Manual lines in DNS zone file
ephigenie Wrote:looks cool so far.

Sry we did not react so far.
If you've a complete patch which is somewhat tested we see if we can integrate it in the main source.

One important point would be to have some kind of on/off like there's for php/cgi on a per domain basis.
We're busy with getting rc6 stable asap - thats why not much time is spent with other things atm.

i've created ticket, patch include GUI
http://www.isp-control.net/ispcp/ticket/1429
07-18-2008 04:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ibiza4000 Offline
Junior Member
*

Posts: 19
Joined: Feb 2007
Reputation: 0
Post: #7
RE: Manual lines in DNS zone file
Blondak

Fantastic work ,, hopefully this can be implemented within code soon!!!

great work!!
07-19-2008 02:46 AM
Find all posts by this user Quote this message in a reply
gutek Offline
Junior Member
*

Posts: 11
Joined: May 2008
Reputation: 0
Post: #8
RE: Manual lines in DNS zone file
Great job. This is the feature that was missing in ISPCP. I hope it will be available asap in main tree.
08-14-2008 02:46 AM
Find all posts by this user Quote this message in a reply
suw Offline
Junior Member
*

Posts: 17
Joined: Sep 2008
Reputation: 0
Post: #9
RE: Manual lines in DNS zone file
Before to apply this patch open-it with vi and replace all blondak/ with null.

Quote:vi basic-dns-support.txt
:%s/blondak\///g
:wq!
09-06-2008 07:57 AM
Find all posts by this user Quote this message in a reply
itanium Offline
Junior Member
*

Posts: 35
Joined: Apr 2007
Reputation: 0
Post: #10
RE: Manual lines in DNS zone file
Thank for your patch.

But... I have a problem:

when i want to add a domain (new domain user):

Code:
Column count doesn't match value count at row 1

and on the top left of the page i have 00000

link: http://xxx.com/reseller/user_add3.php

Rev: RC6 1341

Also the edit_dns.php is wong with the rc6:

Ex:
RC5=
$cfg['CLIENT_TEMPLATE_PATH']

RC6=
Config::get('CLIENT_TEMPLATE_PATH')

The name of the file rau3.php is now user_add3.php etc...
(This post was last modified: 09-09-2008 03:33 AM by itanium.)
09-09-2008 03:28 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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