Current time: 10-24-2020, 09:03 PM 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
Post Reply 


Messages In This Thread
Manual lines in DNS zone file - Blondak - 07-10-2008 08:45 PM
RE: Manual lines in DNS zone file - nuno - 07-12-2008, 05:28 AM
RE: Manual lines in DNS zone file - nuno - 07-18-2008, 01:24 AM
RE: Manual lines in DNS zone file - gutek - 08-14-2008, 02:46 AM
RE: Manual lines in DNS zone file - suw - 09-06-2008, 07:57 AM
RE: Manual lines in DNS zone file - mpages - 09-16-2008, 05:20 AM
RE: Manual lines in DNS zone file - Juz - 10-27-2008, 03:26 AM
RE: Manual lines in DNS zone file - Juz - 10-29-2008, 05:33 AM
RE: Manual lines in DNS zone file - BeNe - 10-29-2008, 07:21 AM
RE: Manual lines in DNS zone file - Juz - 10-29-2008, 03:51 PM
RE: Manual lines in DNS zone file - hnn - 11-20-2008, 07:28 PM
RE: Manual lines in DNS zone file - kaotix - 12-12-2008, 04:15 AM
RE: Manual lines in DNS zone file - TXC - 12-22-2008, 02:46 AM
RE: Manual lines in DNS zone file - TXC - 01-08-2009, 03:51 AM
RE: Manual lines in DNS zone file - TXC - 01-08-2009, 06:27 AM
RE: Manual lines in DNS zone file - xister - 01-28-2009, 02:42 AM
RE: Manual lines in DNS zone file - tango - 02-20-2009, 10:11 PM
RE: Manual lines in DNS zone file - FeG - 02-20-2009, 10:30 PM
RE: Manual lines in DNS zone file - CHBIE - 02-09-2009, 05:46 AM
RE: Manual lines in DNS zone file - tango - 02-20-2009, 10:56 PM
RE: Manual lines in DNS zone file - xister - 02-21-2009, 06:34 PM
RE: Manual lines in DNS zone file - tango - 02-21-2009, 07:36 PM
RE: Manual lines in DNS zone file - hnn - 02-24-2009, 07:01 PM
RE: Manual lines in DNS zone file - quash - 03-06-2009, 01:31 AM
RE: Manual lines in DNS zone file - quash - 03-09-2009, 10:07 PM
RE: Manual lines in DNS zone file - quash - 03-12-2009, 01:16 AM
RE: Manual lines in DNS zone file - quash - 03-17-2009, 09:03 PM
RE: Manual lines in DNS zone file - quash - 03-24-2009, 12:22 AM
RE: Manual lines in DNS zone file - quash - 03-25-2009, 12:18 AM
RE: Manual lines in DNS zone file - quash - 03-25-2009, 12:53 AM
RE: Manual lines in DNS zone file - quash - 03-27-2009, 07:50 AM
RE: Manual lines in DNS zone file - Foggy - 03-27-2009, 07:17 PM
RE: Manual lines in DNS zone file - Foggy - 03-27-2009, 10:02 PM
RE: Manual lines in DNS zone file - Foggy - 03-27-2009, 11:07 PM
RE: Manual lines in DNS zone file - Zothos - 03-28-2009, 01:10 AM
RE: Manual lines in DNS zone file - Foggy - 03-28-2009, 07:01 PM
RE: Manual lines in DNS zone file - sunsus - 05-04-2009, 08:15 PM
RE: Manual lines in DNS zone file - Haeber - 05-14-2009, 03:14 AM
RE: Manual lines in DNS zone file - sfera - 05-22-2009, 10:24 PM
RE: Manual lines in DNS zone file - sfera - 05-23-2009, 01:43 AM
RE: Manual lines in DNS zone file - sfera - 05-25-2009, 11:55 PM
RE: Manual lines in DNS zone file - sfera - 05-26-2009, 07:30 PM
RE: Manual lines in DNS zone file - bpratt - 06-04-2009, 09:07 AM
RE: Manual lines in DNS zone file - Foggy - 06-22-2009, 06:09 PM
RE: Manual lines in DNS zone file - BeNe - 06-22-2009, 07:16 PM
RE: Manual lines in DNS zone file - tango - 06-22-2009, 10:19 PM
RE: Manual lines in DNS zone file - BeNe - 06-22-2009, 11:11 PM
RE: Manual lines in DNS zone file - tango - 06-23-2009, 02:26 AM
RE: Manual lines in DNS zone file - Foggy - 06-23-2009, 07:19 AM
RE: Manual lines in DNS zone file - Foggy - 06-26-2009, 02:51 PM
RE: Manual lines in DNS zone file - Foggy - 06-28-2009, 05:47 PM
RE: Manual lines in DNS zone file - BeNe - 06-30-2009, 03:51 PM
RE: Manual lines in DNS zone file - Foggy - 07-02-2009, 04:53 PM
RE: Manual lines in DNS zone file - BeNe - 07-28-2009, 04:52 PM
RE: Manual lines in DNS zone file - TSG - 08-30-2009, 10:28 AM

Forum Jump:


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