A simple tool inspired by pow.cx written in Go.
~/Library/Application Support/localdd
- Place a new file with a test domain name into the config folder e.g. abc.test
- Insert the destination into this file following format is supported
- Port on localhost e.g. 8080
- Complete url e.g. http://example.com:8080
- Build macOS binary
make darwinand rename the binary in build to localdd - Place the binary in
/usr/local/Cellar/localdd/sbin/ - Place
configuration/macos/launchd/agent/homebrew.tipok.localldd.plistin/Library/LaunchAgents/
- Place
configuration/macos/resolvin/etc/resolver/and rename it totest - Place
configuration/macos/dnsmasql.confin/usr/local/etc/dnsmasq.d/and rename it tolocaldd.conf - Add the line
conf-dir=/usr/local/etc/dnsmasq.d/,*.confto/usr/local/etc/dnsmasq.conf
- Place
configuration/macos/pf.anchors/redirectsin/usr/local/etc/localdd/pf.anchors/ - Place
configuration/macos/sbin/pf-init.shin/usr/local/Cellar/localdd/sbin/ - Place
configuration/macos/launchd/daemon/homebrew.tipok.localldd.pf.plistin/System/Library/LaunchDaemons/