public
Last active — forked from sstephenson/gist:771090

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12
$ 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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.