dnsmasq one-liners.md
· 387 B · Markdown
Исходник
quick and dirty dns + 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
```
quick and dirty tftp
```sh
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
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
dnsmasq --no-daemon --port 0 --enable-tftp --tftp-root /path/to/wherever \
--bind-interfaces --interface eth0 --listen-address 192.168.200.1