If you are using Linux, you might be wondering what DNS (Domain Name System) server is the best to use. DNS is responsible for translating domain names into IP addresses, which allows you to access websites using their domain names instead of remembering IP addresses.
In this article, we will explore some of the best DNS servers available for Linux users and how to configure them on your system.
- Google DNS
Google DNS is one of the most popular DNS servers available, and it offers fast and reliable service. To use Google DNS on your Linux system, open the terminal and run the following command:sudo nano /etc/systemd/resolved.conf
Add the following lines to the file:
[Resolve]
DNS=8.8.8.8 8.8.4.4
Save and close the file, then restart the systemd-resolved service with the following command:
sudo systemctl restart systemd-resolved.service
- Cloudflare DNS
Cloudflare DNS is another popular DNS server that offers fast and secure service. To use Cloudflare DNS on your Linux system, open the terminal and run the following command:sudo nano /etc/systemd/resolved.conf
Add the following lines to the file:
[Resolve]
DNS=1.1.1.1 1.0.0.1
Save and close the file, then restart the systemd-resolved service with the following command:
sudo systemctl restart systemd-resolved.service
- OpenDNS
OpenDNS is a DNS server that offers customizable filtering options to block websites based on their content. To use OpenDNS on your Linux system, open the terminal and run the following command:sudo nano /etc/systemd/resolved.conf
Add the following lines to the file:
[Resolve]
DNS=208.67.222.222 208.67.220.220
Save and close the file, then restart the systemd-resolved service with the following command:
sudo systemctl restart systemd-resolved.service
- Quad9 DNS
Quad9 DNS is a DNS server that offers security and privacy features to protect against malware and phishing. To use Quad9 DNS on your Linux system, open the terminal and run the following command:sudo nano /etc/systemd/resolved.conf
Add the following lines to the file:
[Resolve]
DNS=9.9.9.9 149.112.112.112
Save and close the file, then restart the systemd-resolved service with the following command:
sudo systemctl restart systemd-resolved.service
So, there are several DNS servers available for Linux users, and each of them offers different features and benefits. Choosing the best DNS server for your needs depends on your priorities, such as speed, security, and privacy.
Related Searches and Questions asked:
That's it for this post. Keep practicing and have fun. Leave your comments if any.
0 Comments