Skip to content

Instantly share code, notes, and snippets.

@bluecmd
Created December 9, 2022 13:49
Show Gist options
  • Save bluecmd/980e65ee4b3eb4ed288c4fe58dfda0f3 to your computer and use it in GitHub Desktop.
Save bluecmd/980e65ee4b3eb4ed288c4fe58dfda0f3 to your computer and use it in GitHub Desktop.
One-liner dnsmasq DHCP server
sudo dnsmasq --port 0 --no-daemon --dhcp-range=192.168.1.100,192.168.1.200 --dhcp-leasefile=/dev/null -z --conf-file=/dev/null --interface enp36s0
@T0MASD
Copy link

T0MASD commented May 3, 2025

make sure ip address for enp36s0 interface is set from 192.168.1.x e.g. 192.168.1.10, otherwise you will see
dnsmasq-dhcp: no address range available for DHCP request via enp36s0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment