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 darwin
and rename the binary in build to localdd - Place the binary in
/usr/local/Cellar/localdd/sbin/
- Place
configuration/macos/launchd/agent/homebrew.tipok.localldd.plist
in/Library/LaunchAgents/
- Place
configuration/macos/resolv
in/etc/resolver/
and rename it totest
- Place
configuration/macos/dnsmasql.conf
in/usr/local/etc/dnsmasq.d/
and rename it tolocaldd.conf
- Add the line
conf-dir=/usr/local/etc/dnsmasq.d/,*.conf
to/usr/local/etc/dnsmasq.conf
- Place
configuration/macos/pf.anchors/redirects
in/usr/local/etc/localdd/pf.anchors/
- Place
configuration/macos/sbin/pf-init.sh
in/usr/local/Cellar/localdd/sbin/
- Place
configuration/macos/launchd/daemon/homebrew.tipok.localldd.pf.plist
in/System/Library/LaunchDaemons/