Validate -nameservers and -addr flags

Fixes #68