How to add some additional DNS search domains without ignoring the DHCP ones?
Just put a file in /etc/resolver/ with a name such as &quot;searchappend&quot; with these contents:
search example.com

Just don't name the file &quot;com&quot; or some other valid TLD. This works because of OSX's resolver magic.  For more info, read through the documentation on your mac with this command:
man 5 resolver

I have a file there called &quot;consul&quot; that looks like this:
nameserver 127.0.0.1
port 8600
search consul

That magically makes it so .consul is appended to the search path, and any resolving for .consul TLDs uses my local nameserver.