Fixes from writing the example

* Error handling to catch out-of-bounds zone returns, to avoid acting on
  the wrong thing
* Only return the record type we're interested in, rather than all
  records
* Allow for records with no values
add DNS management example