cat hostfile | dnsgen - | massdns -r ~/tools/massdns-1.0.0/lists/resolvers.txt --ignore NXDOMAIN --ignore SERVFAIL --ignore REFUSED -t A -o S -w resolved-hosts
This results in nothing being saved. All the OK should be in the output. massdns is running fine but nothing is being saved
I located the error to the -o S option for simple output.