Download the PHP package lightster/dnsmasq-mgmt without Composer
On this page you can find all versions of the php package lightster/dnsmasq-mgmt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lightster/dnsmasq-mgmt
More information about lightster/dnsmasq-mgmt
Files in lightster/dnsmasq-mgmt
Package dnsmasq-mgmt
Short Description Tool for managing `address` entries in dnsmasq
License
Homepage https://github.com/lightster/dnsmasq-mgmt
Informations about the package dnsmasq-mgmt
dnsmasq-mgmt
Tool for pointing wildcarded domains to your local development machine
Dnsmasq provides network infrastructure for small networks. dnsmasq-mgmt
is a tool that installs Dnsmasq and eases the configuration to locally point domains to IP addresses of your choosing.
dnsmasq-mgmt was built to avoid manually updating Dnsmasq or /etc/hosts configuration files.
Currently dnsmasq-mgmt is only supported on macOS.
Installation
Use composer to install dnsmasq-mgmt via:
Then allow dnsmasq-mgmt to restart Dnsmasq and clear the operating system's DNS cache without requesting the sudo password each time:
The last step in installation is to actually install Dnsmasq and setup directories utilized by Dnsmasq:
Configuring domains
Adding a domain
To have b.com
point and subdomains of b.com
point to localhost, run:
Removing a domain
To remove b.com
, run:
Advanced usage
Make dnsmasq-mgmt readily available
Rather than needing to call dnsmasq-mgmt
with a path of ~/.composer/vendor/bin/dnsmasq-mgmt
every time, add ~/.composer/vendor/bin/
to the PATH environment variable in your ~/.bash_profile
configuration:
Other commands
dnsmasq-mgmt offers a few other commands. You can get a full list of commands by running the list
subcommand:
Install shell completion
If you are using bash or zsh, you can install shell completion for dnsmasq-mgmt.
For Bash, add the following to your ~/.bashrc
(or ~/.bash_profile
):
For zsh, add the following to your ~/.zshrc
:
All versions of dnsmasq-mgmt with dependencies
silex/silex Version ~1.1
lightster/lstr-silex Version ~0.2.1
psr/log Version ~1.0
symfony/console Version ~2.4
symfony/process Version ~2.5