I use dnsmasq at mac to setup all development sites using address as
If you have new computer, only install dnsmasq.
brew install dnsmasq
If you have older computer and upgrade from maverics. You have installed dnsmasq some time ago. Please, first remove dnsmasq and install them again. In Yosemite are some changes in plist for running services.
brew uninstall dnsmasq brew install dnsmasq
brew cask install launchrocket
Now, you have to setup config file
/usr/local/etc/dnsmasq.conf and write into file these lines:
server=/dev/127.0.0.1 address=/.dev/127.0.0.1 listen-address=127.0.0.1
For restart, you can use LaunchRocket. I'm testing dnsmasq via
$ dig something.dev @localhost ; <<>> DiG 9.8.3-P1 <<>> something.dev @localhost ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14018 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;something.dev. IN A ;; ANSWER SECTION: something.dev. 0 IN A 127.0.0.1 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Sun Nov 2 13:59:41 2014 ;; MSG SIZE rcvd: 47
I hope, dnsmasq works good as in Maverics, now!