How do I display in console the domain names used by the OS X 10.10 DNS resolver?
Open the terminal and enter the following command:

networksetup -getsearchdomains &lt;networkservice&gt;


Network service refers to the interface you are using (Wi-Fi, Ethernet, etc.). You can get a list of all interfaces by running the following command:

networksetup -listallhardwareports


Once you find the name of the hardware port, use that name in place of  in the first command. For example, I generally use Wi-Fi so when I run the command it looks like this:

networksetup -getsearchdomains Wi-Fi