🌍 How to Change DNS on Your VPS
Correct DNS configuration ensures stable and fast domain resolution. While default DNS settings are provided by the hosting provider, you can manually switch to faster or more secure options like Google DNS or Cloudflare. This guide covers how to change DNS settings on both Linux and Windows VPS.
💡 Popular Public DNS Servers
- 📡 Google DNS: 8.8.8.8 and 8.8.4.4
- ⚡ Cloudflare DNS: 1.1.1.1 and 1.0.0.1
- 🔒 Quad9 DNS: 9.9.9.9 and 149.112.112.112
- 🛡 OpenDNS: 208.67.222.222 and 208.67.220.220
🐧 Changing DNS on Linux (Ubuntu, Debian)
Edit the resolv.conf file:
sudo nano /etc/resolv.conf
Replace its contents with:
nameserver 8.8.8.8 nameserver 1.1.1.1
⚠ On some systems, this file may be overwritten after reboot. In that case, configure DNS using netplan
or systemd-resolved
.
Example using Netplan:
ethernets: eth0: nameservers: addresses: [8.8.8.8, 1.1.1.1]
🪟 Changing DNS on Windows Server
1. Go to Network Connections → Adapter Settings
2. Open Internet Protocol Version 4 (TCP/IPv4)
3. Select Use the following DNS server addresses
4. Enter: 8.8.8.8
and 1.1.1.1
5. Click OK and restart the connection
🔧 Verify DNS After Changes
- 🧪 Test resolution:
dig bit.hosting
ornslookup bit.hosting
- 🔄 Flush cache:
sudo systemd-resolve --flush-caches
- 📥 Check DNS performance: dnsperf.com
📌 Bit.Hosting Tips
- 🌐 Choose DNS servers close to your VPS location
- 🔒 For better security, consider filtered DNS like Quad9
- ⚠ Avoid unstable or self-hosted DNS without failover
- 🔁 Test access to key services after switching DNS
- 📊 If issues arise — temporarily switch to 8.8.8.8 and recheck
If DNS changes cause issues or your server is unreachable, contact Bit.Hosting support. We’ll help troubleshoot and restore connectivity. 🛠