Configuring DNS on Debian/Ubuntu

Change the domain name server.

To point your server to a new DNS provider, you’ll need to edit the resolv.conf file. This is especially relevant if you’re running your own server — like a VPS or a dedicated server — where DNS settings are often managed manually.

Open the file in any text editor, for example nano:

nano /etc/resolv.conf

Then update the IP address in the nameserver line with the new one:

options rotate
options timeout:2
options attempts:1
nameserver 91.228.153.88
nameserver 195.26.237.237
nameserver 31.172.68.71
Updated at:
Need help?Our engineers will help you free of charge with any question in minutesContact us