How do I check what DNS server I’m using (on Mac OS X)

In Mac OS X, how do I check what DNS server I’m currently using (preferably a command line solution)?

System Preferences > Network shows 192.168.1.1, which is my router’s address and not the real DNS server.

Source: How do I check what DNS server I’m using (on Mac OS X)

Advertisements

Homebrew — OS X 不可或缺的套件管理器

OS X 不可或缺的套件管理器,从 Linux 转到 OSX 必备神器之一,这么说应该不算很夸张吧。

来源: Homebrew — OS X 不可或缺的套件管理器