add some sanity checks
Merge branch 'cleanup' of https://github.com/rpodgorny/faddns into cleanup