Forrest logo
back to the scutil tool

scutil:tldr:bc002

scutil: Display DNS Configuration.
$ scutil --dns
try on your machine

The command "scutil --dns" is used to view and modify the DNS configuration on a macOS system using the scutil (System Configuration Utility) command-line tool.

Here's a breakdown of the command:

  • "scutil": This is the command-line tool for interacting with the System Configuration framework on macOS. It allows you to manage network settings, including DNS configuration.

  • "--dns": This is an argument passed to the scutil command, instructing it to display the DNS configuration information.

When you execute the "scutil --dns" command in the terminal, it will retrieve and display the current DNS configuration including the primary DNS server, search domains, DNS resolution order, and other relevant details. This information can be useful for troubleshooting network connectivity issues or verifying your DNS settings.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the scutil tool