How Do You Find DNS Server?


Heather Bennett

When it comes to troubleshooting network issues or configuring network settings, one of the key pieces of information you may need is the DNS (Domain Name System) server. The DNS server is responsible for translating domain names into IP addresses, allowing you to browse the web and access various online services.

But how do you find the DNS server that your device is currently using? Let’s explore a few methods.

Using Command Prompt (Windows)

If you’re using a Windows operating system, you can easily find the DNS server by following these steps:

  1. Open the Command Prompt by typing cmd in the search bar and selecting “Command Prompt” from the results.
  2. In the Command Prompt window, type ipconfig /all and press Enter.
  3. You will see a list of network adapters and their configuration details. Look for the entry labeled “DNS Servers” under your active connection. The IP address listed next to it represents your DNS server.

Using Terminal (Mac)

If you’re using a Mac, you can find the DNS server by following these steps:

  1. Open Terminal by going to Applications > Utilities > Terminal.
  2. In the Terminal window, type networksetup -getdnsservers Wi-Fi and press Enter. Replace “Wi-Fi” with your active network interface name if necessary.
  3. The command will display one or more IP addresses representing your DNS servers.

Using Network Settings (Windows & Mac)

In addition to using command-line tools, both Windows and Mac offer graphical interfaces to view and modify network settings, including DNS server information. Here’s how:


  1. Right-click on the network icon in the system tray and select “Open Network & Internet settings. “
  2. In the Settings window, click on “Change adapter options.

  3. Right-click on your active network connection and select “Properties. “
  4. In the Properties window, scroll down and double-click on “Internet Protocol Version 4 (TCP/IPv4). “
  5. In the next window, you will see your DNS server information under the “Preferred DNS server” and “Alternate DNS server” fields.


  1. Click on the Apple menu and select “System Preferences.”
  2. In System Preferences, click on “Network.”
  3. Select your active network connection from the left sidebar.
  4. Click on the “Advanced” button.
  5. In the Advanced window, go to the “DNS” tab.
  6. You will find your DNS server addresses listed in the DNS Servers section.

Finding your DNS server is an essential step in troubleshooting network issues or configuring custom settings. Whether you prefer using command-line tools or graphical interfaces, Windows or Mac, these methods should help you locate your DNS server with ease.

Discord Server - Web Server - Private Server - DNS Server - Object-Oriented Programming - Scripting - Data Types - Data Structures

Privacy Policy