outzone immediately

Jaromír Talíř jaromir.talir at nic.cz
Wed May 27 23:09:18 CEST 2009


On Wed, 2009-05-27 at 13:58 +0100, Petur Kirke wrote:
> Hi again
> 
> I inserted this into object_state_request:
> 
> "insert into object_state_request (object_id, state_id, valid_to) values 
> (123456, 5, NULL)"
> 
> and it works fine. The domain is outzoned.
> 
> Then i want to put it in zone again, so i inserted this:
> 
> "insert into object_state_request (object_id, state_id, valid_to) values 
> (123456, 6, NULL)"
> 
> but now i got a problem. The domain is not put into zone again, and whois 
> answers:
> 
> ------
> Domain is administartively kept out of zone
> Domain is administartively kept in zone
> Domain is not generated into zone
> ------
> 
> I guess instead of inserting a new record with state = 6, i should DELETE 
> the record with state = 5
> is that correct ?

Exactly! You cannot have two competing requests, you have to close first
request. The best way is to update row and set
canceled=current_timestamp. This way you will have a history of
requests.

Regards,
Jaromir


> regards
> Petur
> 
> 
> 
> -------------------------------------------------------------------------------------------------------------
> 
> On Sat, 2009-05-23 at 19:02 +0100, Petur Kirke wrote:
> >
> > if i want to outzone one domain immediately,
> >
> > i must first insert into table object_state_request
> >
> > and then run object_regular_procedure immediately
> >
> > is this correct ?
> 
> Yes, but you don't need to call complete object_regular_procedure, it's
> enough to run object_update_states, so that state of domain will change
> to 'outzone'.
> 
> Next zone file generation process (calling genzone_client) will avoid
> this domain and will not generate it into zone file;
> 
> Regards,
> Jaromir
>  
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3870 bytes
Desc: not available
Url : http://lists.nic.cz/pipermail/fred-users/attachments/20090527/016ca861/attachment.bin 


More information about the fred-users mailing list