Run the following command on your Pi-hole:
I have "pihole: command not found" no pihole executeable is on the machine
You might be on a version before we introduced the pihole command. Try just running the install command again: curl -sSL https://install.pi-hole.net | bash
curl -sSL https://install.pi-hole.net | bash
Thanks it worked, but since the update, at every restart the /etc/resolv.conf reset to nameserver 192.168.0.1 so the dns resolv isn't works until i write some nameservers in it. Why is that?
It is probably handled by another tool. Check the comments in the file.