add .type routines to dns modules
add dns example in dig.lua, and tweak cqueues:wrap to make the code simpler
update documentation to add dns modules .type routines