Commits on Oct 18, 2016
Commits on Oct 17, 2016
  1. Fix for miekg/dns issue #289: support the SMIMEA record (#410)

    1) Refactoring of tlsa.go
       - moved routine to create the certificate rdata to its own go module
         as this is shared between TLSA and SMIMEA records
    2) Added support for creating an SMIMEA domain name
    3) Developed in accordance with draft-ietf-dane-smime-12 RFC
    Submitting for your review. Happy to make any recommended changes or
    address omissions.
    Lightly tested against our internal DNS service which hosts DANE
    SMIMEA records for our email certificates.
    Parse tests are added.
    committed on GitHub Oct 17, 2016
  2. Fix post link (#414)

    marcusgrando committed with Oct 17, 2016
Commits on Oct 6, 2016
Commits on Oct 5, 2016
  1. Simple function to clear the DO bit from an OPT resource record. (#407)

    * Function to clear the DO bit from an OPT RR.
    * Tests for ClearDo() function.
    * Changed from ClearDo() to SetDo() with an optional argument.
    * Update doc string for SetDo(). Make tests for SetDo() comprehensive.
    shane-kerr committed with Oct 5, 2016
Commits on Oct 4, 2016
  1. Add MicroDNS (#408)

    fffaraz committed with Oct 4, 2016
Commits on Oct 3, 2016
  1. Fix a couple of comments (#386)

    mbhinder committed with Oct 3, 2016
  2. Add a badge for godoc (#395)

    caglar10ur committed with Oct 3, 2016
  3. Fix typos (#405)

    kevinburke committed with Oct 3, 2016
Commits on Jul 26, 2016
  1. Handle empty salt value (#392)

    When removing the reflection we inadvertely also removed the code for
    handling empty salt values in NSEC3 and NSEC3PARAM. These are somewhat
    annoying because the text representation is '-', which is not valid hex.
    committed on GitHub Jul 26, 2016
Commits on Jun 14, 2016
  1. zmsg: return empty rr with header (#380)

    When there is no rdata, return the newly created RR with the header
    embedded in it. If we only return the header, we changed the
    API for Go DNS.
    committed on GitHub Jun 14, 2016
Commits on Jun 13, 2016
  1. Cleanup and removals (#377)

    * Cleanup and removals
    Gut rawmsg.go as most functions are not used. Reword some documentation.
    Add more types to be checked for name compression.
    * Yeah, we do use these
    * Remove this function as well - only used one
    committed on GitHub Jun 13, 2016
Commits on Jun 12, 2016
  1. Remove reflection (#376)

    Everything is generated. Remove all uses of packStruct/unpackStruct and
    make the library reflectionless.
    committed on GitHub Jun 12, 2016
  2. Kill all reflection when packing/unpacking RR (#372)

    Update the size-xxx-member tags to point to another field in the struct
    that should be used for the length in that field. Fix NSEC3/HIP and TSIG
    to use to this and generate the correct pack/unpack functions for them.
    Remove IPSECKEY from the lib and handle it as an unknown record - it is
    such a horrible RR, needed kludges before - now just handle it as an
    unknown RR.
    All types now use generated pack and unpack functions. The blacklist is
    committed on GitHub Jun 12, 2016
  3. Skip reflection for most types (#369)

    Make the reflection types a black list (these types use (or should use)
    the tag 'size-xxx' in their struct definition.s
    All other types don't use reflection anymore.
    * Return a pointer to the header when there is no rdata, this restores old
      behavior. The rest of the conversion mostly hangs on getting size-hex
      right, but then packStruct and packStructValue and the unpack variant
      can be killed.
    * Generate pack and unpack for all embedded types as well.
    * Fix PrivateRRs, register an unpack function as well, when you register
      a new PrivateRR.
    * Add the tag octet, nsec, []domains and more  to msg_helper.go
    committed on GitHub Jun 12, 2016
  4. Add RcodeBadCookie (23)

    committed Jun 12, 2016
Commits on Jun 11, 2016
  1. Extra doc for DNS Cookies

    committed Jun 11, 2016
  2. RFC 7858 and 7873 are published

    committed Jun 11, 2016
Commits on Jun 9, 2016
  1. Use t.Errorf in tests and make the error variable naming more consist…

    …ent. (#367)
    * Make the error variable always named err.
    Sometimes the error variable was named 'err' sometimes 'e'.  Sometimes
    'e' refered to an EDNS or string and not an error type.
    * Use t.Errorf instead of t.Logf & t.Fail.
    michaelharo committed with Jun 9, 2016
Commits on Jun 8, 2016
  1. Simplify packing and unpacking (#363)

    * Simplify packing and unpacking
    * Make a copy of the buffer to allow buffer reuse.
    * Revert use of fmt.Sprintf
    I don't have time to benchmark this right now and I suspect a different
    cleanup will be of higher value.
    michaelharo committed with Jun 8, 2016
  2. Use encoding/binary's conversion functions when possible. (#364)

    * Remove {un,}packUint{16,32}Msg functions.
    unpackUint16Msg unpackUint32Msg packUint16Msg packUint32Msg implemented
    functionality that is part of the encoding/binary package.
    * Use encoding/binary's encoding in more places.
    michaelharo committed with Jun 8, 2016
Commits on Jun 5, 2016
  1. Remove WKS support

    Support for WKS was incomplete, i.e. len() method was incorrect.
    Remove support for the record and handle it as an unknown one.
    Fixes #361
    committed Jun 5, 2016
  2. Generate pack/unpack for all RRs (#360)

    Add dns:txt parsing helper to prevent compile errors. This allows
    us to generate all unpack/pack function.
    Add pack to the RR interface definition and add this method to
    We still use typeToUnpack to select which types don't use reflection.
    committed Jun 5, 2016
  3. Seed math/rand with crypto/rand (#359)

    * Use crypto/rand to seed math/rand instead of using the default seed
    * Better seeding+generation and fallback on crypto/rand.Read failure
    * Remove user warning
    rolandshoemaker committed with Jun 5, 2016
Commits on Jun 4, 2016
  1. Fixed typo in docstring (#358)

    joe2far committed with Jun 4, 2016
Commits on Jun 3, 2016
  1. Merge branch 'generate_pack'

    committed Jun 3, 2016
  2. Remove (most) reflection

    Remove the use of reflection when packing and unpacking, instead
    generate all the pack and unpack functions using msg_generate.
    This will generate zmsg.go which in turn calls the helper functions from
    This increases the speed by about ~30% while cutting back on memory
    usage. Not all RRs are using it, but that will be rectified in upcoming
    Most of the speed increase is in the header/question section parsing.
    These functions *are* not generated, but straight forward enough. The
    implementation can be found in msg.go.
    The new code has been fuzzed by go-fuzz, which turned up some issues.
    All files that started with 'z', and not autogenerated were renamed,
    i.e. zscan.go is now scan.go.
    Reflection is still used, in subsequent PRs it will be removed entirely.
    committed May 14, 2016
Commits on May 12, 2016
  1. go fmt (#355)

    erikdubbelboer committed with May 12, 2016
Commits on May 7, 2016
Commits on May 5, 2016
  1. Check length before packing OPT (#352)

    fixes #351
    committed May 5, 2016
Commits on May 3, 2016
  1. massage edns cookie comment

    committed May 3, 2016