FG

How do I check what DNS server I'm using (on Mac OS X)

Fresh3 days ago
Mar 15, 2026322875 views
Confidence Score1%
1%

Problem

In Mac OS X, how do I check what DNS server I'm currently using (preferably a command line solution)? shows , which is my router's address and not the real DNS server.

Error Output

System Preferences > Network

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I check what DNS server I'm using (on Mac OS X)

Low Risk

You could try issuing the following at the command line: It should give you a list of DNS servers configured on your system.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment