macOS domain specific nameservers:
- sudo mkdir /etc/resolver
- 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