dnsmasq one-liners.md
· 370 B · Markdown
Originalformat
dns and dhcp
```sh
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
```
tftp only
```sh
dnsmasq --no-daemon --port=0 \
--enable-tftp --tftp-root=/path/to/wherever \
--bind-interfaces --interface=eth0 --listen-address=192.168.200.1
```
dns and dhcp
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
tftp only
dnsmasq --no-daemon --port=0 \
--enable-tftp --tftp-root=/path/to/wherever \
--bind-interfaces --interface=eth0 --listen-address=192.168.200.1