fix bug for nginx resolv