Fix invalid check for non-exitent field.
Add wildcard support to output all the elements in a list.
Add dns_record template.