Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created April 26, 2021 08:34
Show Gist options
  • Select an option

  • Save denzhel/9f45fe98cc5b8a876f472445d0a9c206 to your computer and use it in GitHub Desktop.

Select an option

Save denzhel/9f45fe98cc5b8a876f472445d0a9c206 to your computer and use it in GitHub Desktop.
MacOS resolve specific domains

If you want to resolve a specific domain with a specific resolver/nameserver, add this:

sudo mkdir /etc/resolver
sudo echo "nameserver <IPAddress>" >> /etc/resolver/internal.domain.io

This was tested on Big Sur 11.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment