My raw DNS setting in
220.127.116.11 , and now I set it to
I want to match *.dev to localhost, and others goes to
18.104.22.168, how to do this?
migrated from stackoverflow.com Apr 18 '11 at 7:22
This question came from our site for professional and enthusiast programmers.
You cannot do this from the bare UNIX resolver. You need to set up a local DNS cache to do the routing. There are several trivial to configure; it will take you about 10 minutes with dnscache (see http://cr.yp.to/djbdns/dnscache.html "scans the servers directory") or dnsmasq (http://www.thekelleys.org.uk/dnsmasq/docs/setup.html "Using special servers"). You don't need one cache per client, you can set up one such forwarding cache for the whole network, and then route other clients through it.