Back to commands

DNS

Beginner

ipconfig getoption en0 domain_name_server

Display's gateway DNS server

Explanation

ipconfig getoption en0 domain_name_server displays the DNS server assigned to the en0 network interface (typically Wi-Fi on many Macs). It helps verify which DNS server your Mac is using to resolve domain names, making it useful when troubleshooting slow browsing, DNS resolution failures, or incorrect DNS settings.

Syntax

ipconfig getoption en0 domain_name_server

Example

192.168.1.253

Run this command from your terminal.

Related Guides

Related Tools

No related links yet.