HGPA

dnsmasq

Installing

brew install dnsmasq

Modifying dnsmasq

Since there are a few ways to install dnsmasq we can't assume certain paths.

Find all related files using find / -iname "dnsmasq" 2>/dev/null. This may take a while and won't display additional finds in subdirectories.

If already loaded plist then use launchctl list | grep dnsmasq to determine name used registered with launchd. First number is currnet PID, seconde is current status.

The CLI for launchctl has changed in recent versions. The load/unload/start/stop commands are deprecated. launchctl stop will still stop a daemon, but will allow it to immediately restart if configured that way. Use it to restart after config change.

/Library/LaunchDaemons/dev.dnsmasq.plist is the configuration of dnsmasq for launchd

For a boxen-installed brew:

# edit config files
emacs /opt/boxen/config/dnsmasq/dnsmasq.conf

# reload
sudo launchctl stop dev.dnsmasq

Configuring dnsmasq

Filename: dnsmasq.md (Edit)
Modified: 2016-10-11 (149bb65f3125cb829e4ab7c9aa54a2eaf2f365bd)
Created: 2016-08-09 (5c5988d8657b977fb09fefaf30a7647a19cb17fd)