As a Linux user, you may want to set your DNS server to 18.104.22.168, which is a widely used DNS server by Google. In this article, we will guide you on how to set DNS to 22.214.171.124 in Linux.
Domain Name System (DNS) is a system that translates domain names into IP addresses. DNS servers act as a directory service for the internet, and they are responsible for resolving domain names to IP addresses.
By default, your Linux system will use the DNS servers provided by your internet service provider (ISP). However, you may want to use a different DNS server for various reasons, such as to improve your internet speed or to bypass censorship. One popular DNS server is 126.96.36.199, which is operated by Google.
Table of Contents
- Checking the current DNS server
- Editing the /etc/resolv.conf file
- Setting the DNS server using Network Manager
- Setting the DNS server using systemd-resolved
- Verifying the DNS server
Checking the current DNS serverBefore setting the DNS server to 188.8.131.52, you may want to check the current DNS server. To do this, open the terminal and type the following command:
This command will display the current DNS server.
Editing the /etc/resolv.conf fileThe /etc/resolv.conf file is a configuration file that contains information about the DNS servers to use. To set the DNS server to 184.108.40.206, you need to edit this file. To do this, open the terminal and type the following command:
sudo nano /etc/resolv.conf
This command will open the /etc/resolv.conf file in the nano text editor. Then, add the following line at the top of the file:
Save the changes and exit the text editor.
Setting the DNS server using Network ManagerIf you are using a desktop environment that uses Network Manager, you can set the DNS server using the graphical interface. To do this, follow these steps:
- Click on the network icon in the system tray.
- Select "Network Settings" or "Network Connections."
- Select your network connection and click on the gear icon.
- Select the "IPv4" or "IPv6" tab, depending on your network configuration.
- In the "DNS" section, select "Manual" and add 220.127.116.11 to the DNS servers list.
- Click "Apply" and close the window.
Setting the DNS server using systemd-resolvedIf you are using a newer version of Linux that uses systemd-resolved, you can set the DNS server using the following steps:
- Open the terminal and type the following command:
sudo systemctl edit systemd-resolved
- This command will open a new file in the text editor. Add the following lines to the file:
- Save the changes and exit the text editor.
- Restart the systemd-resolved service using the following command:
sudo systemctl restart systemd-resolved
Verifying the DNS serverAfter setting the DNS server to 18.104.22.168, you may want to verify that it is working correctly. To do this, open the terminal and type the following command:
Replace "example.com" with any domain name you want to test.
Related Searches and Questions asked:
That's it for this post. Keep practicing and have fun. Leave your comments if any.