Skip to content

Instantly share code, notes, and snippets.

@shinzui
Forked from sstephenson/gist:771090
Created February 19, 2011 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinzui/835249 to your computer and use it in GitHub Desktop.
Save shinzui/835249 to your computer and use it in GitHub Desktop.
$ sudo su -
# mkdir /etc/resolver
# cat > /etc/resolver/test
nameserver 127.0.0.1
port 2155
^D
^D
$ brew install dnsmasq
$ dnsmasq --port=2155 --no-resolv --address=/.test/127.0.0.1
$ ping foo.test
PING foo.test (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.022 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment