Skip to content

Instantly share code, notes, and snippets.

@kerbrose
Last active April 19, 2020 13:37
Show Gist options
  • Save kerbrose/b8df050164fa8a439c0f5d7011f0483c to your computer and use it in GitHub Desktop.
Save kerbrose/b8df050164fa8a439c0f5d7011f0483c to your computer and use it in GitHub Desktop.
Wildcard subdomains with dnsmasq
sudo apt-get install dnsmasq
echo "address=/localhost/127.0.0.1" > /etc/dnsmasq.d/localhost.conf
echo "prepend domain-name-servers 127.0.0.1;" >> /etc/dhcp/dhclient.conf
sudo systemctl restart dnsmasq.service
sudo dhclient
# non systemd
/etc/init.d/dnsmasq restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment