snippetbashTip
dnsmasq — Lightweight DNS, DHCP, TFTP, and PXE server. More information: <https://manned.org/dnsmasq>.
Viewed 0 times
tftpdnsmasqcommandandlightweightclidhcpdns
Problem
How to use the
dnsmasq command: Lightweight DNS, DHCP, TFTP, and PXE server. More information: <https://manned.org/dnsmasq>.Solution
dnsmasq — Lightweight DNS, DHCP, TFTP, and PXE server. More information: <https://manned.org/dnsmasq>.Start dnsmasq with default configuration:
dnsmasqRun dnsmasq in the foreground (for debugging):
dnsmasq --no-daemonSpecify a custom configuration file:
dnsmasq --conf-file={{path/to/config.conf}}Enable verbose logging:
dnsmasq --log-queries --log-facility=-Set a DHCP range and lease time:
dnsmasq --dhcp-range={{192.168.0.50,192.168.0.150,12h}}Display version:
dnsmasq --versionCode Snippets
Start dnsmasq with default configuration
dnsmasqRun dnsmasq in the foreground (for debugging)
dnsmasq --no-daemonSpecify a custom configuration file
dnsmasq --conf-file={{path/to/config.conf}}Enable verbose logging
dnsmasq --log-queries --log-facility=-Set a DHCP range and lease time
dnsmasq --dhcp-range={{192.168.0.50,192.168.0.150,12h}}Context
tldr-pages: common/dnsmasq
Revisions (0)
No revisions yet.