Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.5: Disable DHCP-specified DNS servers' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Disable DHCP-specified DNS servers
Authored by: LordGilman on Jul 31, '08 12:58:49PM

I use dnsmasq as a local caching server and found that the networksetup command works for this as well. It has two options, -getdnsservers and -setdnsservers to set and get these settings per network interface.

The system preferences panel still shows the greyed out DNS server from DHCP but -getdnsservers just lists the one I added. Checking dnsmasq's logs confirm that all my DNS queries are going through dnsmasq.

[ Reply to This | # ]