Ubuntu is one of the most popular Linux-based operating systems used by many individuals and organizations. It is a versatile system that can be used for various purposes such as web development, data analysis, and even as a home desktop.
One of the important aspects of networking is the Domain Name System (DNS) server. DNS server helps to resolve the domain name to the IP address of a website, and it is crucial to know the current DNS server in use.
In this article, we will discuss how to find the current DNS server in Ubuntu.
Using Command Line Interface (CLI) to find DNS Server in UbuntuOne of the easiest and quickest ways to find the current DNS server in Ubuntu is to use the Command Line Interface (CLI). Here are the steps:
Step 1: Open the terminal
To open the terminal, you can use the shortcut key "Ctrl+Alt+T" or search for the terminal in the Ubuntu dash.
Step 2: Use the "nmcli" command
The "nmcli" command is a powerful command-line tool that can be used to manage NetworkManager. In Ubuntu, NetworkManager is responsible for managing the network connections. To find the current DNS server, open the terminal and type the following command:
nmcli dev show | grep 'IP4.DNS'
This command will display the current DNS server(s) in use.
Step 3: Interpret the output
The output of the above command will display the current DNS server(s) in use. For example, if the output shows "IP4.DNS: 18.104.22.168" and "IP4.DNS: 22.214.171.124", it means that the current DNS server in use is "126.96.36.199" and "188.8.131.52".
Using GUI to find DNS Server in UbuntuApart from using the CLI, you can also find the current DNS server in Ubuntu by using the Graphical User Interface (GUI). Here are the steps:
Step 1: Open the "Settings" application
To open the "Settings" application, click on the "Activities" button located in the top-left corner of the screen, search for "Settings" and click on the icon.
Step 2: Click on "Network"
In the "Settings" application, click on the "Network" option.
Step 3: Click on the current network connection
Under the "Network" option, click on the current network connection.
Step 4: Click on the gear icon
Under the current network connection, click on the gear icon to open the "Network Settings".
Step 5: Click on "IPv4" tab
In the "Network Settings", click on the "IPv4" tab.
Step 6: Find the current DNS server
In the "IPv4" tab, you will see the "DNS" field. The current DNS server(s) in use will be listed in this field.
In this article, we have discussed how to find the current DNS server in Ubuntu using both the CLI and GUI methods. Knowing the current DNS server in use is important for troubleshooting network issues and configuring network settings. We hope this article has been helpful to you.
Related Searches and Questions asked:
That's it for this post. Keep practicing and have fun. Leave your comments if any.