1. 19 Mar, 2019 8 commits
    • Matthijs Mekking's avatar
      Ignore trust anchors using disabled algorithm · 1d45ad8f
      Matthijs Mekking authored
      More specifically: ignore configured trusted and managed keys that
      match a disabled algorithm.  The behavioral change is that
      associated responses no longer SERVFAIL, but return insecure.
    • Matthijs Mekking's avatar
      Move algorithm variables, add disabled algorithms · 07c35f32
      Matthijs Mekking authored
      Move from conf.sh.in to conf.sh.common as they will also need to be
      added to conf.sh.win32.  Add variables for testing disabled
    • Matthijs Mekking's avatar
    • Matthijs Mekking's avatar
    • Ondřej Surý's avatar
    • Ondřej Surý's avatar
      Add shell system test driver · 25a689ec
      Ondřej Surý authored
    • Michał Kępień's avatar
      Make stop.pl wait for lock file cleanup · c787a539
      Michał Kępień authored
      bin/tests/system/stop.pl only waits for the PID file to be cleaned up
      while named cleans up the lock file after the PID file.  Thus, the
      aforementioned script may consider a named instance to be fully shut
      down when in fact it is not.
      Fix by also checking whether the lock file exists when determining a
      given instance's shutdown status.  This change assumes that if a named
      instance uses a lock file, it is called "named.lock".
      Also rename clean_pid_file() to pid_file_exists(), so that it is called
      more appropriately (it does not clean up the PID file itself, it only
      returns the server's identifier if its PID file is not yet cleaned up).
    • Michał Kępień's avatar
      Correctly invoke stop.pl when start.pl fails · 4afad2a0
      Michał Kępień authored
      MR !1141 broke the way stop.pl is invoked when start.pl fails:
        - start.pl changes the working directory to $testdir/$server before
          attempting to start $server,
        - commit 27ee629e causes the $testdir
          variable in stop.pl to be determined using the $SYSTEMTESTTOP
          environment variable, which is set to ".." by all tests.sh scripts,
        - commit e227815a makes start.pl pass
          $test (the test's name) rather than $testdir (the path to the test's
          directory) to stop.pl when a given server fails to start.
      Thus, when a server is restarted from within a tests.sh script and such
      a restart fails, stop.pl attempts to look for the server directory in a
      nonexistent location ($testdir/$server/../$test, i.e. $testdir/$test,
      instead of $testdir/../$test).  Fix the issue by changing the working
      directory before stop.pl is invoked in the scenario described above.
  2. 15 Mar, 2019 4 commits
  3. 14 Mar, 2019 5 commits
  4. 12 Mar, 2019 2 commits
    • Michał Kępień's avatar
      Silence a Perl warning output by stop.pl · 91e5a99b
      Michał Kępień authored
      On Unix systems, the CYGWIN environment variable is not set at all when
      BIND system tests are run.  If a named instance crashes on shutdown or
      otherwise fails to clean up its pidfile and the CYGWIN environment
      variable is not set, stop.pl will print an uninitialized value warning
      on standard error.  Prevent this by using defined().
    • Petr Menšík's avatar
      Allow ifconfig to be called from any directory · 38301052
      Petr Menšík authored
      ifconfig.sh depends on config.guess for platform guessing. It uses it to
      choose between ifconfig or ip tools to configure interfaces. If
      system-wide automake script is installed and local was not found, use
      platform guess. It should work well on mostly any sane platform. Still
      prefers local guess, but passes when if cannot find it.
  5. 11 Mar, 2019 7 commits
    • Michał Kępień's avatar
      Stabilize "delzsk.example" zone checks · e02de04e
      Michał Kępień authored
      When a zone is converted from NSEC to NSEC3, the private record at zone
      apex indicating that NSEC3 chain creation is in progress may be removed
      during a different (later) zone_nsec3chain() call than the one which
      adds the NSEC3PARAM record.  The "delzsk.example" zone check only waits
      for the NSEC3PARAM record to start appearing in dig output while private
      records at zone apex directly affect "rndc signing -list" output.  This
      may trigger false positives for the "autosign" system test as the output
      of the "rndc signing -list" command used for checking ZSK deletion
      progress may contain extra lines which are not accounted for.  Ensure
      the private record is removed from zone apex before triggering ZSK
      deletion in the aforementioned check.
      Also future-proof the ZSK deletion progress check by making it only look
      at lines it should care about.
    • Mark Andrews's avatar
      ${ttl} must exist and be non null · dee1f1a4
      Mark Andrews authored
    • Michał Kępień's avatar
      Make ANSWER TTL capping checks stricter · a85cc414
      Michał Kępień authored
      For checks querying a named instance with "dnssec-accept-expired yes;"
      set, authoritative responses have a TTL of 300 seconds.  Assuming empty
      resolver cache, TTLs of RRsets in the ANSWER section of the first
      response to a given query will always match their authoritative
      counterparts.  Also note that for a DNSSEC-validating named resolver,
      validated RRsets replace any existing non-validated RRsets with the same
      owner name and type, e.g. cached from responses received while resolving
      CD=1 queries.  Since TTL capping happens before a validated RRset is
      inserted into the cache and RRSIG expiry time does not impose an upper
      TTL bound when "dnssec-accept-expired yes;" is set and, as pointed out
      above, the original TTLs of the relevant RRsets equal 300 seconds, the
      RRsets in the ANSWER section of the responses to expiring.example/SOA
      and expired.example/SOA queries sent with CD=0 should always be exactly
      120 seconds, never a lower value.  Make the relevant TTL checks stricter
      to reflect that.
    • Michał Kępień's avatar
      Relax ADDITIONAL TTL capping checks · 8baf8590
      Michał Kępień authored
      Always expecting a TTL of exactly 300 seconds for RRsets found in the
      ADDITIONAL section of responses received for CD=1 queries sent during
      TTL capping checks is too strict since these responses will contain
      records cached from multiple DNS messages received during the resolution
      In responses to queries sent with CD=1, ns.expiring.example/A in the
      ADDITIONAL section will come from a delegation returned by ns2 while the
      ANSWER section will come from an authoritative answer returned by ns3.
      If the queries to ns2 and ns3 happen at different Unix timestamps,
      RRsets cached from the older response will have a different TTL by the
      time they are returned to dig, triggering a false positive.
      Allow a safety margin of 60 seconds for checks inspecting the ADDITIONAL
      section of responses to queries sent with CD=1 to fix the issue.  A
      safety margin this large is likely overkill, but it is used nevertheless
      for consistency with similar safety margins used in other TTL capping
    • Michał Kępień's avatar
      Fix message section checked in a TTL capping test · a597bd52
      Michał Kępień authored
      Commit c032c54d inadvertently changed
      the DNS message section inspected by one of the TTL capping checks from
      ADDITIONAL to ANSWER, introducing a discrepancy between that check's
      description and its actual meaning.  Revert to inspecting the ADDITIONAL
      section in the aforementioned check.
    • Michał Kępień's avatar
      Fix NTA-related races · 9a36a1bb
      Michał Kępień authored
      Changes introduced by commit 6b8e4d6e
      were incomplete as not all time-sensitive checks were updated to match
      revised "nta-lifetime" and "nta-recheck" values.  Prevent rare false
      positives by updating all NTA-related checks so that they work reliably
      with "nta-lifetime 12s;" and "nta-recheck 9s;".  Update comments as well
      to prevent confusion.
    • Evan Hunt's avatar
      test the use of the view ACL in DLZ · e2062879
      Evan Hunt authored
  6. 08 Mar, 2019 6 commits
  7. 07 Mar, 2019 2 commits
  8. 06 Mar, 2019 6 commits
    • Mark Andrews's avatar
      remove dependancy on libxml · a9c47414
      Mark Andrews authored
    • Mark Andrews's avatar
      explicitly convert byte to string · ec3d830b
      Mark Andrews authored
    • Tony Finch's avatar
      cleanup dnssec-keygen manual page · 1954f8d2
      Tony Finch authored
      Alphabetize options and synopsis; remove spurious -z from synopsis;
      remove remnants of deprecated -k option; remove mention of long-gone
      TSIG support; refer to -T KEY in options that are only relevant to
      pre-RFC3755 DNSSEC; remove unnecessary -n ZONE from the example, and
      add a -f KSK example.
    • Michał Kępień's avatar
      Make nsupdate use OS-supplied ephemeral port range · 06f582f2
      Michał Kępień authored
      Make nsupdate honor the operating system's preferred ephemeral port
      range instead of always using the default 1024-65535 range for outgoing
    • Michał Kępień's avatar
      Add -c to usage message for named-checkconf · cba15515
      Michał Kępień authored
      Add the -c command line option to the usage message for named-checkconf
      as it is not present there despite being documented.
    • Michał Kępień's avatar
      Look for named plugins in ${libdir}/named · 1a9fc624
      Michał Kępień authored
      When the "library" part of a "plugin" configuration stanza does not
      contain at least one path separator, treat it as a filename and assume
      it is a name of a shared object present in the named plugin installation
      directory.  Absolute and relative paths can still be used and will be
      used verbatim.  Get the full path to a plugin before attempting to
      check/register it so that all relevant log messages include the same
      plugin path (apart from the one logged when the full path cannot be