2 ms·
The example you gave won't stick for most people: echo "nameserver 127.0.0.1" > /etc/resolv.conf If you use dhcp3-client (chances are you do), add this li
by sigil 14y ago
The example you gave won't stick for most people:
echo "nameserver 127.0.0.1" > /etc/resolv.conf
If you use dhcp3-client (chances are you do), add this line to /etc/dhcp/dhcplient.conf to try your local DNS cache first:
prepend domain-name-servers 127.0.0.1;
Note that this will slow down stuff like captive portals at airports that want to push you to their "accept terms" page first.
I use djb's dnscache instead of dnsmasq, but dnsmasq works fine too.
http://cr.yp.to/djbdns/run-cache.html http://cr.yp.to/djbdns/run-cache.html