ip6.arpa shortcut

  • Fri 07 November 2014
  • misc

I thought I put this up here before, but apparently I sent it in email to someone...

Pro-tip based on almost a dozen years of hand-managing ip6.arpa here: don't hand-construct the records by doing the nybbles manually; you'll screw up far too often. Use dig(1) instead, it does the listing for you, even if there's no data at the node. For instance:

{% raw %} % dig -x 2001:DB8:1:2::cafe:babe

yields (among a pile of other things):

{% raw %} ;; QUESTION SECTION: ;e.b.a.b.e.f.a.c. IN PTR {% endraw %} Handily cut-and-pasteable!