dnsmasq one-liners.md
· 397 B · Markdown
Originalformat
quick and dirty dns + dhcp
```sh
sudo dnsmasq --no-daemon --port 53 \
--dhcp-range=192.168.255.100,192.168.255.200 --dhcp-leasefile=/dev/null \
--bind-interfaces --interface eth0 --listen-address=192.168.200.1
```
quick and dirty tftp
```sh
sudo dnsmasq --no-daemon --port=0 --enable-tftp --tftp-root=/path/to/wherever \
--bind-interfaces --interface eth0 --listen-address=192.168.200.1
quick and dirty dns + dhcp
sudo dnsmasq --no-daemon --port 53 \
--dhcp-range=192.168.255.100,192.168.255.200 --dhcp-leasefile=/dev/null \
--bind-interfaces --interface eth0 --listen-address=192.168.200.1
quick and dirty tftp
sudo dnsmasq --no-daemon --port=0 --enable-tftp --tftp-root=/path/to/wherever \
--bind-interfaces --interface eth0 --listen-address=192.168.200.1