dnsmasq one-liners
· 378 B · Text
Неформатований
# 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
| 1 | # quick and dirty dns + dhcp |
| 2 | sudo dnsmasq --no-daemon --port 53 --dhcp-range=192.168.255.100,192.168.255.200 --dhcp-leasefile=/dev/null \ |
| 3 | --bind-interfaces --interface eth0 --listen-address=192.168.200.1 |
| 4 | |
| 5 | # quick and dirty tftp |
| 6 | sudo dnsmasq --no-daemon --port=0 --enable-tftp --tftp-root=/path/to/wherever \ |
| 7 | --bind-interfaces --interface eth0 --listen-address=192.168.200.1 |
| 8 |