Added possibility to specify which fields to print

Use -f to specify which fields that should be printed. Works with
both regular output and JSON output.
Declare function
Minor changes to dns.c
Removed trailing whitespace