Difference between revisions of "dnsmasq dhcp options"
Jump to navigation
Jump to search
(→Text: moved to "dnsmasq options", because it's not the DHCP options :-P) |
(attempting to work out the *actual* dhcp options...) |
||
Line 1: | Line 1: | ||
==Navigation== | ==Navigation== | ||
[[computing]]: [[software]]: [[dnsmasq]]: [[dnsmasq dhcp options|dhcp options]] | [[computing]]: [[software]]: [[dnsmasq]]: [[dnsmasq dhcp options|dhcp options]] | ||
+ | ==Notes== | ||
+ | The command "[[dnsmasq]] --help" is ''supposed'' to return a list of valid DHCP sub-options for the "--dhcp-option" option, but it just returns a summary of all the available options as given in detail on the [[dnsmasq manpage]]. This page will be for reconstructing what that list should actually be, based on that page and any other sources found. | ||
+ | ==Options== | ||
+ | The option numbers are specified in RFC 2132 and subsequent [[request for comment|RFC]]s. | ||
+ | |||
+ | Usage: | ||
+ | * '''command line''': | ||
+ | ** --dhcp-option=<u>number</u>,<u>value</u> | ||
+ | ** --dhcp-option=option:<u>name</u>,<u>value</u> | ||
+ | * '''[[dnsmasq.conf]]''': | ||
+ | ** dhcp-option=<u>number</u>,<u>value</u> | ||
+ | ** dhcp-option=option:<u>name</u>,<u>value</u> | ||
+ | {| | ||
+ | |- | ||
+ | ! number || name || description | ||
+ | |- | ||
+ | | 3 || router || router to use for communication | ||
+ | |- | ||
+ | | 42 || ntp-server || [[network time protocol]] server | ||
+ | |} | ||
+ | |||
+ | * The special address 0.0.0.0 is taken to mean "the address of the machine running dnsmasq". | ||
+ | * Data types allowed are comma separated dotted-quad IP addresses, a decimal number, colon-separated hex digits and a text string. | ||
+ | * If the optional network-ids are given then this option is only sent when all the network-ids are matched. |
Revision as of 17:24, 21 October 2007
computing: software: dnsmasq: dhcp options
Notes
The command "dnsmasq --help" is supposed to return a list of valid DHCP sub-options for the "--dhcp-option" option, but it just returns a summary of all the available options as given in detail on the dnsmasq manpage. This page will be for reconstructing what that list should actually be, based on that page and any other sources found.
Options
The option numbers are specified in RFC 2132 and subsequent RFCs.
Usage:
- command line:
- --dhcp-option=number,value
- --dhcp-option=option:name,value
- dnsmasq.conf:
- dhcp-option=number,value
- dhcp-option=option:name,value
number | name | description |
---|---|---|
3 | router | router to use for communication |
42 | ntp-server | network time protocol server |
- The special address 0.0.0.0 is taken to mean "the address of the machine running dnsmasq".
- Data types allowed are comma separated dotted-quad IP addresses, a decimal number, colon-separated hex digits and a text string.
- If the optional network-ids are given then this option is only sent when all the network-ids are matched.