Skip to content

Instantly share code, notes, and snippets.

@fridtjof
Last active November 7, 2019 14:48
Show Gist options
  • Save fridtjof/c65869458faacda30fde1feb3b706818 to your computer and use it in GitHub Desktop.
Save fridtjof/c65869458faacda30fde1feb3b706818 to your computer and use it in GitHub Desktop.

macOS domain specific nameservers:

  1. sudo mkdir /etc/resolver
  2. create file /etc/resolver/ with contents:
nameserver <IP of desired nameserver>

example:

/etc/resolver/my.internal.domain

nameserver 172.42.42.42

dig host.my.internal.domain now uses 172.42.42.42 to resolve host.my.internal.domain

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