PHPackages                             lightster/dnsmasq-mgmt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lightster/dnsmasq-mgmt

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

lightster/dnsmasq-mgmt
======================

Tool for managing `address` entries in dnsmasq

v0.0.11(8y ago)21631[1 issues](https://github.com/lightster/dnsmasq-mgmt/issues)PHPPHP &gt;=5.4

Since Dec 21Pushed 7y ago2 watchersCompare

[ Source](https://github.com/lightster/dnsmasq-mgmt)[ Packagist](https://packagist.org/packages/lightster/dnsmasq-mgmt)[ Docs](https://github.com/lightster/dnsmasq-mgmt)[ RSS](/packages/lightster-dnsmasq-mgmt/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (5)Versions (13)Used By (0)

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
------------

[](#installation)

Use composer to install dnsmasq-mgmt via:

```
composer global require "lightster/dnsmasq-mgmt=~0.0.9"
```

Then allow dnsmasq-mgmt to restart Dnsmasq and clear the operating system's DNS cache without requesting the sudo password each time:

```
sudo ~/.composer/vendor/bin/dnsmasq-mgmt sudoers:install
```

The last step in installation is to actually install Dnsmasq and setup directories utilized by Dnsmasq:

```
~/.composer/vendor/bin/dnsmasq-mgmt dnsmasq:install
```

Configuring domains
-------------------

[](#configuring-domains)

### Adding a domain

[](#adding-a-domain)

To have `b.com` point and subdomains of `b.com` point to localhost, run:

```
~/.composer/vendor/bin/dnsmasq-mgmt address:add b.com 127.0.0.1
```

### Removing a domain

[](#removing-a-domain)

To remove `b.com`, run:

```
~/.composer/vendor/bin/dnsmasq-mgmt address:add b.com 127.0.0.1
```

Advanced usage
--------------

[](#advanced-usage)

### Make dnsmasq-mgmt readily available

[](#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:

```
PATH="$PATH:${HOME}/.composer/vendor/bin"
```

### Other commands

[](#other-commands)

dnsmasq-mgmt offers a few other commands. You can get a full list of commands by running the `list` subcommand:

```
dnsmasq-mgmt list

```

### Install shell completion

[](#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`):

```
source  ~/.composer/vendor/lightster/dnsmasq-mgmt/bin/dnsmasq-mgmt-completion.bash
```

For zsh, add the following to your `~/.zshrc`:

```
source  ~/.composer/vendor/lightster/dnsmasq-mgmt/bin/dnsmasq-mgmt-completion.zsh
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~116 days

Recently: every ~260 days

Total

12

Last Release

2933d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/622d21e6a5fe8af408cb5875fc26cdd8ea10267b24699fc0157b282b583bea33?d=identicon)[lightster](/maintainers/lightster)

---

Top Contributors

[![lightster](https://avatars.githubusercontent.com/u/1365612?v=4)](https://github.com/lightster "lightster (61 commits)")

---

Tags

managementdnsmasq

### Embed Badge

![Health badge](/badges/lightster-dnsmasq-mgmt/health.svg)

```
[![Health](https://phpackages.com/badges/lightster-dnsmasq-mgmt/health.svg)](https://phpackages.com/packages/lightster-dnsmasq-mgmt)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[laravel/framework

The Laravel Framework.

34.8k543.8M19.9k](/packages/laravel-framework)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M418](/packages/drupal-core-recommended)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
