fixing the bug if there is no dns misconfig