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


Post Reply 
Manual lines in DNS zone file
Author Message
NecromanX Offline


Posts: 3
Joined: Feb 2009
Reputation: 0
Post: #70
RE: Manual lines in DNS zone file
Hello all,

i am new too ispcp and offcourse this forum. But i found a little issue in this patch.
I have a second nameserver configured to slave all zones from the primary nameserver. But in this patch if i would add 4 or 5 records in 1 day the serial would still remain the same! this is an issue if you want your second nameserver to get the updated zones. And offcourse it just isnt correct to keep the zone's serial identical after multiple modifications.

i fixed this issue by adding a new field in the table domain:
field: last_session [varchar:10] at the end of the table. this field stores the last used session and if the used timestamp is equal to this last_session of smaller then fill in the TIMESTAMP serial tag with last_session + 1 Smile
Here is my diff file between my ispcp-dns-mngr and the one after this rc7 patch Smile
Code:
382a383
>       my $dmn_id       = @$dmn_data[0];
384a386
>       my $last_serial  = @$dmn_data[22];
423a426
>
426a430,438
>       #Is our Timestamp outdated? did we edit the zone allready this day?
>       if ($time2 eq $last_serial || $time2 <= $last_serial){
>               $time2 = $last_serial + 1;
>       }
>
>       my $sql_fix = "update domain set last_serial='$time2' where domain_id = $dmn_id";
>       my $data_fix = undef;
>       ($rs, $data_fix) = doSQL($sql_fix);
>
3632c3644
<               t1.domain_cgi, t2.ip_number FROM domain AS t1, server_ips AS t2 WHERE t1.domain_ip_id = t2.ip_id
---
>               t1.domain_cgi, t2.ip_number, t1.last_serial FROM domain AS t1, server_ips AS t2 WHERE t1.domain_ip_id = t2.ip_id

If anyone would be so kind to modify the current patch with my diff and the alter table instructions.
I would create the patch myself but i should look up how to create a propper patch. What command should i use?

I Hope this is of any use to someone

Greets,
David
02-27-2009 10:20 AM
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 - NecromanX - 02-27-2009 10:20 AM
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)