Skip to content

DNS SOA Serial bug #28790

Closed
Closed
@schamberg97

Description

@schamberg97
  • Version: 11.16.0 & 12.6.0
  • Platform: macOS 10.14.5 & Ubuntu 18.04.2 LTS (4.15.0-54-generic)
  • Subsystem: dns

Bug description

dns.resolveSoa may produce unexpected "serial" results, when the serial does not follow the YYYYMMDDHH format (or if the serial reaches a certain date ;)

Code sample

var dns = require("dns")
dns.resolveSoa("some.host", function(e,o) {console.log(o)})

Expected results

{
nsname: 'ns1.some.host',
hostmaster: 'hostmaster.some.host',
serial: 4294867295,
refresh: 86400,
retry: 7200,
expire: 1209600,
minttl: 3000
}

Actual results

{
...
serial: -100001, // this is weird
...
}

Observations

After some tests, it appears the lowest serial number under which this issue appears is 2147483648 (something to do with dates?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.dnsIssues and PRs related to the dns subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions