Serial Policy
Merge request reports
Activity
977 return KNOT_ERROR; 978 } 979 980 return data->conf->serial_policy; 981 } 982 983 static uint32_t zones_next_serial(int64_t old_sn, int serial_policy) 984 { 985 if (old_sn < 0) { 986 return KNOT_EINVAL; 987 } 988 989 switch (serial_policy) { 990 case CONF_SERIAL_INCREMENT: 991 return (uint32_t)old_sn + 1; 992 break; 2610 2656 log_zone_info("%s Signing zone...\n", msgpref); 2611 2657 } 2612 2658 2659 uint32_t old_serial = knot_zone_serial(knot_zone_contents(zone)); 94 94 } 95 95 96 96 static int zone_sign(knot_zone_t *zone, knot_changeset_t *out_ch, bool force, 97 knot_update_serial_t soa_up, uint32_t *expires_at) 97 knot_update_serial_t soa_up, uint32_t *expires_at, 98 uint32_t new_serial) 912 @subsubsection serial-policy 913 @vindex serial-policy 914 915 Specifies how the zone serial is updated after DDNS (dynamic update) and 916 automatic DNSSEC signing. If the serial is changed by the dynamic update, no 917 change is made. 918 919 increment - After update or signing, the serial is automatically incremented 920 (according to serial number arithmetic). 921 922 unixtime - After update or signing, serial is set to the current unix time. 923 924 @strong{Warning:} If your serial was in other than unix time format, be careful with 925 transition to unix time. It may happen that the new serial will be 'lower' than 926 the old one. If this is the case, the transition should be done by hand (consult: 927 http://www.zytrax.com/books/dns/ch9/serial.html). 139 141 } conf_zone_t; 140 142 141 143 /*! 144 * \brief Serial policy options. 145 */ 146 typedef enum conf_serial_policy_t { 147 CONF_SERIAL_INCREMENT = 1 << 0, 148 CONF_SERIAL_UNIXTIME = 1 << 1 149 } conf_serial_policy_t;
Please register or sign in to reply