Skip to content

Instantly share code, notes, and snippets.

@leveled
Created August 2, 2019 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leveled/ee4bdeb851c989fece484fa9269b44c0 to your computer and use it in GitHub Desktop.
Save leveled/ee4bdeb851c989fece484fa9269b44c0 to your computer and use it in GitHub Desktop.
Setup DHCP server with dnsmasq
sudo apt-get install dnsmasq
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
# /etc/dnsmasq.d/vnet
dhcp-range=10.10.10.3,10.10.10.100,12h
dhcp-option=option:dns-server,10.10.10.2
sudo systemctl start dnsmasq
sudo systemctl enable dnsmasq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment