Configuring/querying DNS settings from Terminal

This article at macosxhints.com describes it pretty well. You've to use the scutil utility.

Syndicate content