Skip to content

Instantly share code, notes, and snippets.

@benjaminwy
benjaminwy / setup-dnsmasq.sh
Created August 23, 2024 16:06 — forked from archan937/setup-dnsmasq.sh
Point *.test to 127.0.0.1 using DNSMasq and NetworkManager on Ubuntu
#!/bin/bash
# Usage:
#
# curl -sL https://gist.githubusercontent.com/archan937/d35deef3b1f2b5522dd4b8f397038d27/raw/setup-dnsmasq.sh | sudo bash
#
DOMAIN=".test"
ensure_ping() {