fcrdns: added tests

and refactored a little to make unit tests possible
fcrdns: handle PTR host lookup errors

reduces the visual clutter in logs and watch views