spacer
  • Products
  • Support & Training
  • Resources
  • Partners
  • Home

SUBSCRIBE

The Men & Mice IP Address Management blog has educational, informational as well as product related material, both videos and articles for everyone and anyone interested in IP Address management, DNS, DHPC, IPv6, DNSSEC and more....

spacer  spacer  spacer

Subscribe via E-mail

Your email:

spacer

 

Ask the Experts!

Do you have a question about DNS, DHCP, IP Address Management, DNSSEC, IPv6 or anything really?

Then go ahead, Ask our Experts! It's FREE
The best thing is, you don't have to be a client of Men & Mice to ask a question!!

Ask the Expert" />

Latest Posts

  • Unparalleled support for DNS Servers and tightened Security
  • DNSSEC & DANE – E-Mail security reloaded
  • Introduction to the Men & Mice Web Service API
  • [Webinar] IETF 90 Report – DNS, DHCP, IPv6 and DANE
  • RIPE 68 report
  • Men & Mice Suite version 6.6 released
  • On-link vs Off-Link Packet Delivery: Unicast, Multicast, Anycast
  • Immediate ROI with the Men & Mice Suite during transition to Open Source DHCP
  • DNS wildcards demystified
  • Delve deep into DNSSEC
log a Support Request</a>." display="None" validationGroup="ISBBLatest" id="dnn__ctl5__ctl0_BigProblemCV" evaluationfunction="CustomValidatorEvaluateIsValid" style="color:Red;display:none;">

Posts by category

  • Anycast (1)
  • BIND (1)
  • BIND 10 (3)
  • BIND 9 (3)
  • Caching Appliance (1)
  • csv files (1)
  • DANE (1)
  • DDI (9)
  • DHCP (13)
  • DHCP failover (1)
  • DNS (19)
  • DNS reflection attacks (1)
  • DNS Zone (2)
  • DNS/DHCP Appliance (4)
  • DNSSEC (18)
  • IDN (1)
  • IPAM (13)
  • IPv4 (4)
  • IPv6 (13)
  • ISC (1)
  • Linux (1)
  • Mac OS X (1)
  • Men & Mice (22)
  • Men & Mice Suite (19)
  • microsoft active directory (2)
  • Monitoring (3)
  • Open Source (1)
  • platforms (1)
  • ROI (1)
  • Security (2)
  • Solaris (1)
  • Subnets (1)
  • TechEd (5)
  • TSIG keys (1)
  • Unbound (2)
  • Unbound Support (1)
  • Web Services (1)
  • webinars (3)
  • Windows (1)
  • Windows Server 2012 (4)
log a Support Request</a>." display="None" validationGroup="ISBBPopular" id="dnn__ctl6__ctl0_BigProblemCV" evaluationfunction="CustomValidatorEvaluateIsValid" style="color:Red;display:none;">

The Men & Mice Blog

Current Articles | spacer  RSS Feed

Generating TSIG key for BIND 10

Posted by Men & Mice on Fri, Feb 15, 2013
  
spacer  Email Article  
Tweet  
  
  

The first Release Candidate of the new DNS and DHCP server from ISC, BIND 10 (bind10.isc.org) was released on February 15, 2013.

Men & Mice is monitoring and supporting the BIND 10 development, and as part of that, our engineers sometimes create little helpful tools to share with the community.

TSIG keys

TSIG is short for Transaction Signatures, defined in RFC 2845 "Secret Key Transaction Authentication for DNS (TSIG)". TSIG is primarily used to authenticate DNS zone transfer between DNS servers, and to secure dynamic DNS updates.

BIND 10 supports TSIG for both zone transfer and dynamic updates, but it does not contain a tool to create the TSIG keys. While it is possible to use the tools from BIND 9 (https://www.isc.org/wordpress/software/bind/) or ldns (ldns-keygen, www.nlnetlabs.nl/projects/ldns/), installing these tools along with BIND 10 might be too much overhead.

Men & Mice engineers have written a small tool in Python called b10-gentsigkey.py (https://github.com/menandmice/b10-gentsigkey).

The tool creates by default an HMAC-MD5 key with 128bits size and prints the key on the screen:

# b10-gentsigkey.py example.com
example.com:rc4VdlEPMFan4D+9icDEkg==:hmac-md5

b10-gentsigkey options:

Usage: b10-gentsigkey.py [--help | options] name
Options:
 -h, --help              show this help message and exit
-a ALGORITHM, --algorithm=ALGORITHM
                         algorithm for the TSIG key
-b SIZE, --bytes=SIZE
                         size of the key
-f                      print bindctl CLI command

b10-gentsigkey supports all the TSIG algorithms that are also supported by BIND 10 ('hmac-md5', 'hmac-sha1', 'hmac-sha224', 'hmac-sha256', 'hmac-sha384', 'hmac-sha512').

Using the "-f" (Format) switch, the tool will print the bindctl command to enter the TSIG key into the BIND 10 configuration. That command can be copy-n-paste into the bindctl command line:

# b10-gentsigkey.py -a hmac-sha256 -b 256 -f example.de
config add tsig_keys/keys "example.de:M2nrsQWVEAuAfm67U2Gdfj2dFfJIPay9ZFMukXSSCiY=:hmac-sha256"
config commit

this output can be directly piped into bindctl:


# b10-gentsigkey.py -a hmac-sha1 -b 256 -f example.com | bindctl

We hope to bring a similar command into the BIND 10 CLI (bindctl), so that no external tool is required to create TSIG keys by an external tool.

Until then, enjoy this little tool.

If you are interested in learning more about BIND 10, Men & Mice is working close with ISC to deliver the first industry training on this new version of the BIND name server software in Amsterdam, Netherlands from February 20th - 21st, 2013. You can learn more about it from the Men & Mice BIND 10 workshop page.
 

Tags: BIND 10, TSIG keys

Comments

Post Comment
Name
 *
Email
 *
Website (optional)
Comment
 *

Allowed tags: <a> link, <b> bold, <i> italics

log a Support Request</a>." display="None" validationGroup="ISBizBlogger" id="dnn__ctl0__ctl0_BigProblemCV" evaluationfunction="CustomValidatorEvaluateIsValid" style="color:Red;display:none;">