To specify the new domain name server, you will need to edit the file resolv.conf. Open the file with any text editor:

nano /etc/resolv.conf  

and replace the ip-address with a new one in the line nameserver:

# Generated by vps config generator
options rotate  
options timeout:2  
options attempts:1  

Updated Feb. 1, 2022