![]() Configure as default DNS resolver in macOS This will forward foobar.test to 127.0.0.1 (localhost), while joomla.box and mysite.test will go to 33.33.33.58 (the Vagrant box). You can then add multiple address directives to deal with different situations. The following one-liner takes care of all these at once: address=/.test/joomla.box/33.33.33.58 test domains are added dynamically so I don’t want to be editing /etc/hosts each time. I often work on this Vagrant box which needs a joomla.box domain and a changing number of. You can also route multiple domains at once. We can verify our changes using the dig command by querying our local dnsmasq instance: dig foobar.test should get an answer back that points to 127.0.0.1: If you don’t have Homebrew installed, follow the instructions on their site. The easiest way to install dnsmasq (on macOS) is using the Homebrew package manager. Configure as default DNS resolver in macOS.I wrote a separate blog post that explains how to manage dnsmasq without the need for administrative rights every time you make a change. ![]() Update: In this post I’ll show you how to configure dnsmasq to set up and manage dnsmasq and your local domains easily. Dnsmasq is a lightweight DNS forwarder that’s easy to install and configure. There’s a well-known tool to help us improve host name management: dnsmasq.
0 Comments
Leave a Reply. |