{"action":"created","issue":{"url":"https://api.github.com/repos/PowerDNS/pdns/issues/2066","labels_url":"https://api.github.com/repos/PowerDNS/pdns/issues/2066/labels{/name}","comments_url":"https://api.github.com/repos/PowerDNS/pdns/issues/2066/comments","events_url":"https://api.github.com/repos/PowerDNS/pdns/issues/2066/events","html_url":"https://github.com/PowerDNS/pdns/issues/2066","id":53998033,"number":2066,"title":"autoserial and dnsupdate don't work together","user":{"login":"mtremer","id":6318738,"avatar_url":"https://avatars.githubusercontent.com/u/6318738?v=3","gravatar_id":"","url":"https://api.github.com/users/mtremer","html_url":"https://github.com/mtremer","followers_url":"https://api.github.com/users/mtremer/followers","following_url":"https://api.github.com/users/mtremer/following{/other_user}","gists_url":"https://api.github.com/users/mtremer/gists{/gist_id}","starred_url":"https://api.github.com/users/mtremer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtremer/subscriptions","organizations_url":"https://api.github.com/users/mtremer/orgs","repos_url":"https://api.github.com/users/mtremer/repos","events_url":"https://api.github.com/users/mtremer/events{/privacy}","received_events_url":"https://api.github.com/users/mtremer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PowerDNS/pdns/labels/auth","name":"auth","color":"eb6420"},{"url":"https://api.github.com/repos/PowerDNS/pdns/labels/enhancement","name":"enhancement","color":"cccccc"},{"url":"https://api.github.com/repos/PowerDNS/pdns/labels/rfc2136","name":"rfc2136","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-11T17:28:35Z","updated_at":"2015-01-12T12:26:38Z","closed_at":null,"body":"Hello guys,\r\n\r\nthanks for adding support for RFC 2136.\r\n\r\nI think I found a minor issue with using that in conjunction with autoserial. Every time some record is added and/or changed by using the nsupdate command, the SOA record is updated and the serial is changed. You can select multiple ways in which that is done, but none of that seems to honour the autoserial setting (the serial is just 0 and if that is required, it will be computed by using the largest \"change_date\" value of any record of that zone).\r\n\r\nIn order to support autoserial I suppose that only two very simple things need to be done:\r\n1) If the serial is 0, don't change it.\r\n2) change_date of the new or changed record must be set accordingly. Currently it is NULL.\r\n\r\nThat should be it. Is there any reason why this is not supported right now?"},"comment":{"url":"https://api.github.com/repos/PowerDNS/pdns/issues/comments/69562853","html_url":"https://github.com/PowerDNS/pdns/issues/2066#issuecomment-69562853","issue_url":"https://api.github.com/repos/PowerDNS/pdns/issues/2066","id":69562853,"user":{"login":"Habbie","id":525838,"avatar_url":"https://avatars.githubusercontent.com/u/525838?v=3","gravatar_id":"","url":"https://api.github.com/users/Habbie","html_url":"https://github.com/Habbie","followers_url":"https://api.github.com/users/Habbie/followers","following_url":"https://api.github.com/users/Habbie/following{/other_user}","gists_url":"https://api.github.com/users/Habbie/gists{/gist_id}","starred_url":"https://api.github.com/users/Habbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Habbie/subscriptions","organizations_url":"https://api.github.com/users/Habbie/orgs","repos_url":"https://api.github.com/users/Habbie/repos","events_url":"https://api.github.com/users/Habbie/events{/privacy}","received_events_url":"https://api.github.com/users/Habbie/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T12:26:37Z","updated_at":"2015-01-12T12:26:37Z","body":"Thanks for explaining. A tip: think about what happens if you lose a user and remove his entry; your SOA might go down!\r\n\r\nI don't have an immediate definitive idea for fixing autoserial+2136. One random thought is to have a 'DO-NOT-TOUCH' SOA-EDIT value, in which case the admin is expected to manage autoserial - or as you say, make '0' simply mean that.\r\n\r\nI'll leave this ticket open to invite thoughts from others, and I'm sure we'll get somewhere good."}}