Fix known domains tool and one config problem

cc @jennyd