Jeff Carr cee5e5fffd | ||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
README.md | ||
shell.nix |
README.md
Required dependencies:
- dnsmasq
- Ubuntu:
sudo apt install dnsmasq
- macOS:
brew install dnsmasq
- Ubuntu:
- Rust (and Cargo)
1. Configure dnsmasq
Linux:
Add the following to your dnsmasq.conf
:
address=/.idk/127.0.0.1
macOS:
echo "address=/.idk/127.0.0.1" >> "$(brew --prefix)/etc/dnsmasq.conf"
sudo brew services start dnsmasq
2. Use dnsmasq to resolve queries
macOS:
sudo mkdir -p /etc/resolver
sudo tee -a /etc/resolver/idk > /dev/null << EOF
nameserver 127.0.0.1
EOF
3. Installing
cargo install --path .
4. Running
sudo dns-over-wikipedia