2017 © Pedro Peláez
 

library dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

image

lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  • Saturday, July 7, 2018
  • by lightster
  • Repository
  • 2 Watchers
  • 1 Stars
  • 103 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 14 Versions
  • 12 % Grown

The README.md

dnsmasq-mgmt

Tool for pointing wildcarded domains to your local development machine, (*1)

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., (*2)

dnsmasq-mgmt was built to avoid manually updating Dnsmasq or /etc/hosts configuration files., (*3)

Currently dnsmasq-mgmt is only supported on macOS., (*4)

Installation

Use composer to install dnsmasq-mgmt via:, (*5)

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:, (*6)

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

The last step in installation is to actually install Dnsmasq and setup directories utilized by Dnsmasq:, (*7)

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

Configuring domains

Adding a domain

To have b.com point and subdomains of b.com point to localhost, run:, (*8)

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

Removing a domain

To remove b.com, run:, (*9)

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

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:, (*10)

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

Other commands

dnsmasq-mgmt offers a few other commands. You can get a full list of commands by running the list subcommand:, (*11)

dnsmasq-mgmt list

Install shell completion

If you are using bash or zsh, you can install shell completion for dnsmasq-mgmt., (*12)

For Bash, add the following to your ~/.bashrc (or ~/.bash_profile):, (*13)

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

For zsh, add the following to your ~/.zshrc:, (*14)

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

The Versions

07/07 2018

dev-master

9999999-dev https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

07/07 2018

dev-issue-22-sort-address-list

dev-issue-22-sort-address-list https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

22/06 2018

v0.0.11

0.0.11.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

18/06 2018

v0.0.10

0.0.10.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

12/10 2017

v0.0.9

0.0.9.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

03/07 2016

v0.0.8

0.0.8.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

15/08 2015

v0.0.7

0.0.7.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

15/07 2015

v0.0.6

0.0.6.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

16/05 2015

v0.0.5

0.0.5.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

08/03 2015

v0.0.4

0.0.4.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

24/02 2015

v0.0.3

0.0.3.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

08/02 2015

v0.0.2

0.0.2.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

31/01 2015

v0.0.1

0.0.1.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq

22/12 2014

v0.0.0

0.0.0.0 https://github.com/lightster/dnsmasq-mgmt

Tool for managing `address` entries in dnsmasq

  Sources   Download

The Requires

 

management dnsmasq