Giter Club home page Giter Club logo

dns-update's People

Contributors

mmitch avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

markstachowski

dns-update's Issues

generated serial is too long

nsd from Debian Buster does a proper check of the serial number and errors out, because the currently generated YYYYMMDDhhmmss is much more than a 32 bit unsigned integer:

current value:   20190723001745
maximum allowed:     4294967295

We need to shorten our pattern. We also need to keep the 1 second resolution to avoid duplicate serial numbers.

Possible fixes:

  • use unix timestamp
    • pro: signed 32bit integer, so it fits even after the rollover in 2038
    • con: not readable by a mere human
  • skip the year
    • pro: easy to parse by a human
    • pro: this script is thought to be called multiple times per day, so the year is not really relevant
    • cons: none yet (?)
  • use an abstract atomic counter instead of a timestamp-derived number
    • pro: sub-second resolution, no need for the sleep 1 hack to ensure unique timestamps
    • con: time of last update not contained in DNS information
    • con: hard to implement (concurrent access to simple text file)

Looks like "skip the year" to me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.