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

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

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

Tool for managing `address` entries in dnsmasq

v0.0.11(7y 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 1mo ago

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

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

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[phpro/soap-client

A general purpose SoapClient library

8885.6M46](/packages/phpro-soap-client)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)

PHPackages © 2026

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