Is there a way to force DNS lookups through a specific adapter's servers on OS X? I have an ethernet connection and a wifi connection, but I'd like all DNS requests to go through the ethernet connection's servers.
Is there a way to force DNS lookups through a specific adapter's servers on OS X? I have an ethernet connection and a wifi connection, but I'd like all DNS requests to go through the ethernet connection's servers.
Prioritize the Ethernet service over the Wi-Fi service. Open System Preferences -> Network pane -> Action (gear) menu under the service menu on the left -> "Set Service Order" -> In the service order dialog, drag Ethernet above Wi-Fi. Be sure to apply changes t make them take effect.
Note that this only matters if both interfaces are connected; if not, whichever's connected automatically takes priority. Also, the Wi-Fi service will still have DNS servers listed, they just won't be used since it's not the primary interface.
Remove the DNS entry on the wifi connection.