Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add $INCLUDE parsing and RFC 2308 $TTL compliance #2

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Commits on Oct 19, 2014

  1. Added parsing functionality before individual records are parsed such…

    … that included records can be parsed in same loop. Added separate test 'dns-zoneparse-include.t' for testing inclusion of other zones. New test is a clone of dns-zoneparse.t but only tests parsing from data in variable and reading from file as when included records are parsed, output and parsed again they're returned in a different format than the expected hash structure due to record grouping by ORIGIN. Added 2x test zones, include-test-zone.db (performs the inclusion with the directives) and included-test-zone.db (is included by the former) as to not impact original test-zone.db. included-test-zone.db has slightly different records to distinguish results in new test. parsing is compliant with specification in RFC1035 and supports domain parameter (which sets the relative origin of the included records) and comment parameter (which isn't used at present).
    Mr Ben Nott committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    ed71572 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2014

  1. Added RFC2308 compliant \$TTL directive behavior. The directive is us…

    …ed to set the TTL of all resource records that do not explicitly set a TTL. When a \$TTL directive is not set, the original behavior of inheriting the previously set TTL is used. When neither a \$TTL directive or explicit RR TTL is set, the minimum TTL of the SOA record is used. An additional test dns-zoneparse-dollar-ttl.t has be added to prove that the original behavior is still working. The main test dns-zoneparse.t has been updated to reflect the new behavior as the test zone test-zone.db uses a \$TTL directive. Both of these tests prove the functionality to work in either case.
    Mr Ben Nott committed Oct 20, 2014
    Configuration menu
    Copy the full SHA
    b5fb593 View commit details
    Browse the repository at this point in the history
  2. Added RFC2308 compliant $TTL directive behavior.

    The directive is used to set the TTL of all resource records that do not explicitly set a TTL.
    When a $TTL directive is not set, the original behavior of inheriting the previously set TTL is used.
    When neither a $TTL directive or explicit RR TTL is set, the minimum TTL of the SOA record is used.
    An additional test dns-zoneparse-dollar-ttl.t has be added to prove that the original behavior is still working.
    The main test dns-zoneparse.t has been updated to reflect the new behavior as the test zone test-zone.db uses a $TTL directive.
    Both of these tests prove the functionality to work in either case.
    Mr Ben Nott committed Oct 20, 2014
    Configuration menu
    Copy the full SHA
    703c732 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    df33d0a View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2014

  1. Added better support for last_origin fallback when resetting relative…

    … origin following $INCLUDE
    Mr Ben Nott committed Oct 27, 2014
    Configuration menu
    Copy the full SHA
    f3841fd View commit details
    Browse the repository at this point in the history
  2. Greatly reduced size of testing for $INCLUDE and $TTL functionality i…

    …n dns-zoneparse-perl
    Mr Ben Nott committed Oct 27, 2014
    Configuration menu
    Copy the full SHA
    dbef3a5 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2014

  1. Updated exact SOA test to reflect addition fo RFC2308 $TTL behavior a…

    …dded in this branch.
    Mr Ben Nott committed Oct 28, 2014
    Configuration menu
    Copy the full SHA
    0ddbbbf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c589b52 View commit details
    Browse the repository at this point in the history
  3. Reset 'use lib' path in main test but it could be either ../lib or li…

    …b depending on where it is desired to run the test from.
    Mr Ben Nott committed Oct 28, 2014
    Configuration menu
    Copy the full SHA
    3a7207b View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2014

  1. Configuration menu
    Copy the full SHA
    891b1c1 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2014

  1. Configuration menu
    Copy the full SHA
    f1ce20d View commit details
    Browse the repository at this point in the history