fix DNS query bug