Using Dnsmasq for local development on OS X
passingcuriosity.com
Using Dnsmasq for local development on OS X
1–10 of 39 posts
Re: Using Dnsmasq for local development on OS X
#2Doesn't do the exact same (you'd have to add a new entry everytime, rather than point *.dev to localhost) but https://addons.mozilla.org/en-US/firefox/addon/hostadmin/ is easier to set up. It'll flush the dns cache everytime its changed.
Re: Using Dnsmasq for local development on OS X
#3For Ruby apps, there's also http://pow.cx/
Re: Using Dnsmasq for local development on OS X
#4I've been doing this for about a year or so now and its honestly the best solution for local development I've used in my career.
Recently I've started using Vagrant for more complex sites that require custom server software, or are based outside the traditional LAMP stack, but a Dnsmasq based setup on my mac is still my favorite for most sites.
Re: Using Dnsmasq for local development on OS X
#5Great article for highlighting the dnsmasq on OSX idea. I wasn't aware that you could run this there.
On the goal of having unlimited easy to configure real domains that point to locahost, another service of interst is localtest.me [1]. This offers *.localtest.me -> 127.0.0.1
Re: Using Dnsmasq for local development on OS X
#6http://dev.sh has a nice auto-setup script for this.
Re: Using Dnsmasq for local development on OS X
#7I wrote - http://invoker.codemancers.com/ for similar use. It provides easy to use `.dev` local domain support and then ability to manage multiple processes via a Procfile or custom ini file.
Re: Using Dnsmasq for local development on OS X
#8Great article for highlighting the dnsmasq on OSX idea. I wasn't aware that you could run this there. On the goal of having unlimited easy to configure real domains that point to locahost, another service of interst is localtest.me [1]. This offers *.localtest.me -> 127.0.0.1 [1]: http://readme.localtest.me/
This is pretty useful! Maybe a noob question but how does this work offline / slow internet connections? I'm coding on the train pretty frequently and I hate waiting for urls to resolve... I'm guessing it's caching this DNS entry? (why would I otherwise have to run dscacheutil -flushcache...)
Re: Using Dnsmasq for local development on OS X
#9What are the advantages of using an approach like this vs. editing /etc/hosts directly?
Re: Using Dnsmasq for local development on OS X
#10Well, that’s one part of the equation. Are there any guides on what to do after; setting up virtual hosts?