fix bug for resolver isn't set rd, add more test for mx