If your server has problems resolving domains Error "unkown host domain.com" (mostly with OVH servers) , just change the DNS server.
Open resolv.conf
Debian 9 / CentOS
nano /etc/resolv.conf
Debian 10 / Ubuntu
sudo nano /etc/resolv.conf
remove the existing Nameservers and replace with this.
nameserver 8.8.8.8
nameserver 1.1.1.1
After this Save editings with CTRL + O and press enter, then press CTRL + X to close Nano Editor.