3 ms·
> If you don't update the zone file serial, your changes to the zone will not be picked up by DNS resolvers that have previously cached records from your zone!
by teddyh 6y ago
> If you don't update the zone file serial, your changes to the zone will not be picked up by DNS resolvers that have previously cached records from your zone!
This is incorrect. The serial number affects whether slave servers (in this case probably ns2.example.tld) will pick up changes. Resolvers do not see or care about the zone serial.
> This used to be a YYMMDDnn format in days gone by—but that format is no longer required, or in some cases even supported.
A serial number has always been an increasing integer with no technical meaning assigned. But it is still recommended that anyone editing zone files by hand to use the YYYYMMDDXX format; it has not been deprecated, nor is it unsupported by anyone.
- throw0101a 6y ago> A serial number has always been a increasing integer Related: * https://en.wikipedia.org/wiki/Serial_number_arithmetic https://en.wikipedia.org/wiki/Serial_number_arithmetic
- jlgaddis 6y agoRFC 1982: Serial Number Arithmetic [0] --- [0]: https://tools.ietf.org/html/rfc1982 https://tools.ietf.org/html/rfc1982
- jlgaddis 6y ago> A serial number has always been an increasing integer ... An unsigned 32-bit integer, to be specific. While I've always preferred and used the YYYYMMDDnn format for the serial, I've noticed more and more zones using UNIX time for the serial in the last several years. I'm not sure where that "started" but my first guess would be some DNS server that uses something other than "BIND" zone files -- a MySQL database, perhaps? -- as its backend. > ... with no technical meaning assigned. To underscore this key point, consider the following statement from RFC 1982 (in the case where the serial is a 2-bit integer): It is undefined whether 2 > 0 or 0 > 2, and whether 1 > 3 or 3 > 1.
- JdeBP 6y agoPossibly the tinydns-data compiler, which uses the last modification timestamp of the input file when processing Z and . records (unless the Z record has an explicit serial number, of course). * https://cr.yp.to/djbdns/tinydns-data.html https://cr.yp.to/djbdns/tinydns-data.html * http://jdebp.uk./Softwares/djbwares/guide/commands/tinydns-data.xml http://jdebp.uk./Softwares/djbwares/guide/commands/tinydns-d...