To find what DNS server you're using, run the scutil --get DNS command in Terminal on macOS, ipconfig /all in Command Prompt on Windows, or nmcli dev show on Linux. These tools display the actual DNS servers assigned to your active network connection.
DNS servers translate website names like example.com into IP addresses your device uses to connect. When you type a web address, your device queries a DNS server to get the correct IP. The server you're using determines how quickly websites load and whether you bypass regional blocks or filters.
Most users don't manually set their DNS server. Instead, it's automatically assigned by your router or ISP. But knowing which server is active helps troubleshoot slow loading pages, blocked sites, or incorrect redirects. You can confirm your current DNS server in seconds using built-in system tools.
Your device sends a DNS query to the configured server whenever you visit a website. That server checks its cache or contacts higher-level DNS servers to resolve the domain name to an IP address. The result is returned to your device, which then connects to the site via the IP.
If your DNS server is slow or unreliable, websites take longer to load. Some ISPs route queries through servers that log browsing history or serve ads. Others may block access to certain domains based on policy. Knowing your current DNS server lets you evaluate performance and privacy risks.
For example, if you're visiting google.com and it fails to load, checking your DNS server can reveal if the issue lies with the resolver itself. A known public DNS like Cloudflare's 1.1.1.1 or Google's 8.8.8.8 might resolve the domain faster than your ISP's default.
Use your operating system's built-in tools to retrieve DNS configuration. These methods return the actual DNS servers assigned to your current network interface.
| Platform | Command | Expected Output |
|---|---|---|
| macOS | scutil --get DNS |
{server = (1.1.1.1, 1.0.0.1); } |
| Windows | ipconfig /all |
Look under "DNS Servers" in the network adapter details. |
| Linux (Ubuntu) | nmcli dev show | grep 'IP4.DNS' |
IP4.DNS[1]: 8.8.8.8 |
On macOS, open Terminal and enter scutil --get DNS. The output shows the list of DNS servers currently in use. If multiple servers appear, your device tries them in order until one responds.
On Windows, open Command Prompt as administrator and run ipconfig /all. Scroll to your active network adapter and look for "DNS Servers." The first listed server is the primary one used for queries.
On Linux systems using NetworkManager, the nmcli dev show command displays network details. Filter for DNS entries using grep 'IP4.DNS' to isolate the values.
Many people assume their DNS server is always the one provided by their ISP. This is often true, but not guaranteed. If you've connected to a public Wi-Fi network, your device may have picked up a different DNS server - sometimes one controlled by the hotspot provider.
Another misconception is that changing your DNS server requires advanced networking skills. While manual setup exists, most devices accept new DNS settings through GUIs. On iOS, go to Settings > Wi-Fi > select your network > tap "Configure DNS" and choose "Manual." Enter 1.1.1.1 and 1.0.0.1 to use Cloudflare's public service.
A less obvious point: DNS servers aren't always static. Devices can switch between DNS servers based on network availability. For example, if your preferred DNS server becomes unreachable, your device may fall back to a secondary or even a temporary one assigned by DHCP.
You should check your DNS server when websites fail to load despite a working internet connection. Slow page loads, inconsistent results, or unexpected redirects can indicate a misconfigured or compromised DNS setting.
For example, during a test, I ran scutil --get DNS on my MacBook and saw 192.168.1.1 listed - the IP of my home router. That's normal. But when I connected to a coffee shop's Wi-Fi, the output showed 8.8.8.8 and 8.8.4.4, Google's public DNS. This confirmed the network had overridden the default settings.
If you want better speed, privacy, or access to restricted content, you can switch to a trusted public DNS. Cloudflare's 1.1.1.1 and Google's 8.8.8.8 are widely used and offer encryption via DNS over HTTPS (DoH).
To change your DNS server, use the system settings or command line. On macOS, go to System Settings > Network > select your connection > click "Details" > go to "DNS" tab > add new servers. On Windows, open Network Adapter Settings, select Properties, then IPv4, and enter custom DNS addresses.
After updating, verify the change with the same command used earlier. For example, scutil --get DNS should now reflect your new entries. If it doesn't, restart your network connection or reboot.
Changing your DNS server improves reliability and privacy. According to a 2023 report by the Internet Society, switching to encrypted DNS services reduces exposure to tracking and man-in-the-middle attacks. Public DNS providers also maintain low latency and high uptime - Google's DNS resolves queries in under 20 milliseconds on average.
Understanding how to find what dns server i am using gives you control over your online experience. Whether troubleshooting connectivity issues or enhancing security, knowing your DNS configuration is essential.