Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
logiciel:internet:dnsmasq:config:start3 [2021/03/20 09:53] – ↷ Page déplacée et renommée de logiciel:internet:dnsmasq:dnsmasq.conf à logiciel:internet:dnsmasq:config:start3 admin | logiciel:internet:dnsmasq:config:start3 [2022/08/13 22:14] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 13: | Ligne 13: | ||
===== Options ===== | ===== Options ===== | ||
- | | + | |
: | : | ||
- | | + | |
: Écouter sur ce port au lieu du port DNS standard (53). | : Écouter sur ce port au lieu du port DNS standard (53). | ||
: Un réglage à zéro désactive complètement la fonction DNS, ne laissant que DHCP et/ou TFTP. | : Un réglage à zéro désactive complètement la fonction DNS, ne laissant que DHCP et/ou TFTP. | ||
- | | + | |
: filtrer les requêtes auxquelles le DNS public ne peut pas répondre et qui chargent inutilement les serveurs. | : filtrer les requêtes auxquelles le DNS public ne peut pas répondre et qui chargent inutilement les serveurs. | ||
- | | + | |
: Pas de nom simple (sans point ni partie de domaine) | : Pas de nom simple (sans point ni partie de domaine) | ||
- | | + | |
: Pas d' | : Pas d' | ||
- | | + | |
: Activer la validation DNSSEC et la mise en cache | : Activer la validation DNSSEC et la mise en cache | ||
- | | + | |
: | : | ||
- | | + | |
: | : | ||
- | | + | |
: vérifier qu'une réponse non signée est valide. | : vérifier qu'une réponse non signée est valide. | ||
- | | + | |
: Filtrer les requêtes DNS inutiles provenant de Windows qui peuvent être déclenchées. | : Filtrer les requêtes DNS inutiles provenant de Windows qui peuvent être déclenchées. | ||
- | | + | |
: Modifiez cette ligne si vous voulez que DNS récupère ses serveurs d'un autre endroit que / | : Modifiez cette ligne si vous voulez que DNS récupère ses serveurs d'un autre endroit que / | ||
- | | + | |
: Essayer chaque requête avec chaque serveur dans l' | : Essayer chaque requête avec chaque serveur dans l' | ||
- | | + | |
: Pour que dnsmasq récupère ses serveurs à partir de ce fichier (voir ci-dessous) au lieu de / | : Pour que dnsmasq récupère ses serveurs à partir de ce fichier (voir ci-dessous) au lieu de / | ||
- | | + | |
: Ne pas interroger / | : Ne pas interroger / | ||
- | | + | |
: | : | ||
- | | + | |
: Ajoutez ici d' | : Ajoutez ici d' | ||
- | | + | |
: Exemple de routage des requêtes PTR vers les serveurs de noms qui enverra toutes les requêtes adresse-> | : Exemple de routage des requêtes PTR vers les serveurs de noms qui enverra toutes les requêtes adresse-> | ||
- | | + | |
: Vous pouvez contrôler comment dnsmasq parle à un serveur : ceci force les requêtes vers 10.1.2.3 à être acheminées via eth1 | : Vous pouvez contrôler comment dnsmasq parle à un serveur : ceci force les requêtes vers 10.1.2.3 à être acheminées via eth1 | ||
- | | + | |
: adresse source (c' | : adresse source (c' | ||
- | | + | |
: | : | ||
- | | + | |
: Ajoutez ici des domaines locaux, les requêtes pour ces domaines ne sont traitées qu'à partir de /etc/hosts ou de DHCP | : Ajoutez ici des domaines locaux, les requêtes pour ces domaines ne sont traitées qu'à partir de /etc/hosts ou de DHCP | ||
- | | + | |
: | : | ||
- | | + | |
: Domaine dont vous voulez forcer l' | : Domaine dont vous voulez forcer l' | ||
: Cet exemple envoie n' | : Cet exemple envoie n' | ||
- | | + | |
: --address (et --server) fonctionnent également avec les adresses IPv6. | : --address (et --server) fonctionnent également avec les adresses IPv6. | ||
- | | + | |
: | : | ||
- | | + | |
: Ajoutez les adresses IP de toutes les requêtes à yahoo.com, google.com et leurs sous-domaines au VPN et aux ipsets de recherche | : Ajoutez les adresses IP de toutes les requêtes à yahoo.com, google.com et leurs sous-domaines au VPN et aux ipsets de recherche | ||
- | | + | |
: | : | ||
- | | + | |
: Si vous voulez que dnsmasq change uid et gid en autre chose que la valeur par défaut, modifiez les lignes suivantes : | : Si vous voulez que dnsmasq change uid et gid en autre chose que la valeur par défaut, modifiez les lignes suivantes : | ||
- | | + | |
: | : | ||
- | | + | |
: | : | ||
- | | + | |
: | : | ||
- | | + | |
: N' | : N' | ||
: Répétez la ligne pour plusieurs interfaces. | : Répétez la ligne pour plusieurs interfaces. | ||
- | | + | |
: interface sur laquelle ne pas écouter | : interface sur laquelle ne pas écouter | ||
- | | + | |
: interface sur laquelle écouter par adresse (n' | : interface sur laquelle écouter par adresse (n' | ||
- | | + | |
: If you want dnsmasq to provide only DNS service on an interface, configure it as shown above, and then use the following line to disable DHCP and TFTP on it. | : If you want dnsmasq to provide only DNS service on an interface, configure it as shown above, and then use the following line to disable DHCP and TFTP on it. | ||
- | | + | |
: On systems which support it, dnsmasq binds the wildcard address, even when it is listening on only some interfaces. It then discards requests that it shouldn' | : On systems which support it, dnsmasq binds the wildcard address, even when it is listening on only some interfaces. It then discards requests that it shouldn' | ||
- | | + | |
: If you don't want dnsmasq to read /etc/hosts, uncomment the following line. | : If you don't want dnsmasq to read /etc/hosts, uncomment the following line. | ||
- | | + | |
: if you want it to read another file, as well as /etc/hosts, use this. | : if you want it to read another file, as well as /etc/hosts, use this. | ||
- | | + | |
: Set this (and domain: see below) if you want to have a domain automatically added to simple names in a hosts-file. | : Set this (and domain: see below) if you want to have a domain automatically added to simple names in a hosts-file. | ||
- | | + | |
: | : | ||
- | | + | |
: Set the domain for dnsmasq. this is optional, but if it is set, it does the following things. | : Set the domain for dnsmasq. this is optional, but if it is set, it does the following things. | ||
: 1) Allows DHCP hosts to have fully qualified domain names, as long as the domain part matches this setting. | : 1) Allows DHCP hosts to have fully qualified domain names, as long as the domain part matches this setting. | ||
: 2) Sets the " | : 2) Sets the " | ||
: 3) Provides the domain part for " | : 3) Provides the domain part for " | ||
- | | + | |
: Set a different domain for a particular subnet | : Set a different domain for a particular subnet | ||
- | | + | |
: Same idea, but range rather then subnet | : Same idea, but range rather then subnet | ||
- | | + | |
: | : | ||
- | | + | |
: Uncomment this to enable the integrated DHCP server, you need to supply the range of addresses available for lease and optionally a lease time. If you have more than one network, you will need to repeat this for each network on which you want to supply DHCP service. | : Uncomment this to enable the integrated DHCP server, you need to supply the range of addresses available for lease and optionally a lease time. If you have more than one network, you will need to repeat this for each network on which you want to supply DHCP service. | ||
- | | + | |
: This is an example of a DHCP range where the netmask is given. This is needed for networks we reach the dnsmasq DHCP server via a relay agent. If you don't know what a DHCP relay agent is, you probably don't need to worry about this. | : This is an example of a DHCP range where the netmask is given. This is needed for networks we reach the dnsmasq DHCP server via a relay agent. If you don't know what a DHCP relay agent is, you probably don't need to worry about this. | ||
- | | + | |
: This is an example of a DHCP range which sets a tag, so that some DHCP options may be set only for this network. | : This is an example of a DHCP range which sets a tag, so that some DHCP options may be set only for this network. | ||
- | | + | |
: Use this DHCP range only when the tag " | : Use this DHCP range only when the tag " | ||
- | | + | |
: Specify a subnet which can't be used for dynamic address allocation, is available for hosts with matching --dhcp-host lines. Note that dhcp-host declarations will be ignored unless there is a dhcp-range of some type for the subnet in question. In this case the netmask is implied (it comes from the network configuration on the machine running dnsmasq) it is possible to give an explicit netmask instead. | : Specify a subnet which can't be used for dynamic address allocation, is available for hosts with matching --dhcp-host lines. Note that dhcp-host declarations will be ignored unless there is a dhcp-range of some type for the subnet in question. In this case the netmask is implied (it comes from the network configuration on the machine running dnsmasq) it is possible to give an explicit netmask instead. | ||
- | | + | |
: Enable DHCPv6. Note that the prefix-length does not need to be specified and defaults to 64 if missing/ | : Enable DHCPv6. Note that the prefix-length does not need to be specified and defaults to 64 if missing/ | ||
- | | + | |
: Do Router Advertisements, | : Do Router Advertisements, | ||
- | | + | |
: Do Router Advertisements, | : Do Router Advertisements, | ||
- | | + | |
: Do Router Advertisements, | : Do Router Advertisements, | ||
: Set the lifetime to 46 hours. (Note: minimum lifetime is 2 hours.) | : Set the lifetime to 46 hours. (Note: minimum lifetime is 2 hours.) | ||
- | | + | |
: Do DHCP and Router Advertisements for this subnet. Set the A bit in the RA so that clients can use SLAAC addresses as well as DHCP ones. | : Do DHCP and Router Advertisements for this subnet. Set the A bit in the RA so that clients can use SLAAC addresses as well as DHCP ones. | ||
- | | + | |
: Do Router Advertisements and stateless DHCP for this subnet. Clients will not get addresses from DHCP, but they will get other configuration information. | : Do Router Advertisements and stateless DHCP for this subnet. Clients will not get addresses from DHCP, but they will get other configuration information. | ||
: They will use SLAAC for addresses. | : They will use SLAAC for addresses. | ||
- | | + | |
: Do stateless DHCP, SLAAC, and generate DNS names for SLAAC addresses from DHCPv4 leases. | : Do stateless DHCP, SLAAC, and generate DNS names for SLAAC addresses from DHCPv4 leases. | ||
- | | + | |
: Do router advertisements for all subnets where we're doing DHCPv6 Unless overridden by ra-stateless, | : Do router advertisements for all subnets where we're doing DHCPv6 Unless overridden by ra-stateless, | ||
- | | + | |
: Supply parameters for specified hosts using DHCP. There are lots of valid alternatives, | : Supply parameters for specified hosts using DHCP. There are lots of valid alternatives, | ||
- | | + | |
: Always allocate the host with Ethernet address 11: | : Always allocate the host with Ethernet address 11: | ||
- | | + | |
: Always set the name of the host with hardware address 11: | : Always set the name of the host with hardware address 11: | ||
- | | + | |
: Always give the host with Ethernet address 11: | : Always give the host with Ethernet address 11: | ||
- | | + | |
: Give a host with Ethernet address 11: | : Give a host with Ethernet address 11: | ||
- | | + | |
: Give the machine which says its name is " | : Give the machine which says its name is " | ||
- | | + | |
: Always give the host with client identifier 01:02:02:04 the IP address 192.168.0.60 | : Always give the host with client identifier 01:02:02:04 the IP address 192.168.0.60 | ||
- | | + | |
: Always give the InfiniBand interface with hardware address 80: | : Always give the InfiniBand interface with hardware address 80: | ||
- | | + | |
: Always give the host with client identifier " | : Always give the host with client identifier " | ||
- | | + | |
: Enable the address given for " | : Enable the address given for " | ||
- | | + | |
: Never offer DHCP service to a machine whose Ethernet address is 11: | : Never offer DHCP service to a machine whose Ethernet address is 11: | ||
- | | + | |
: Ignore any client-id presented by the machine with Ethernet address 11: | : Ignore any client-id presented by the machine with Ethernet address 11: | ||
- | | + | |
: Send extra options which are tagged as " | : Send extra options which are tagged as " | ||
- | | + | |
: Send extra options which are tagged as " | : Send extra options which are tagged as " | ||
- | | + | |
: Give a fixed IPv6 address and name to client with DUID 00: | : Give a fixed IPv6 address and name to client with DUID 00: | ||
: Note the MAC addresses CANNOT be used to identify DHCPv6 clients. | : Note the MAC addresses CANNOT be used to identify DHCPv6 clients. | ||
: Note also that the [] around the IPv6 address are obligatory. | : Note also that the [] around the IPv6 address are obligatory. | ||
- | | + | |
: Ignore any clients which are not specified in dhcp-host lines or / | : Ignore any clients which are not specified in dhcp-host lines or / | ||
: This relies on the special " | : This relies on the special " | ||
- | | + | |
: Send extra options which are tagged as " | : Send extra options which are tagged as " | ||
- | | + | |
: Send extra options which are tagged as " | : Send extra options which are tagged as " | ||
- | | + | |
: Send extra options which are tagged as " | : Send extra options which are tagged as " | ||
- | | + | |
: If this line is uncommented, | : If this line is uncommented, | ||
- | | + | |
: Send options to hosts which ask for a DHCP lease. | : Send options to hosts which ask for a DHCP lease. | ||
: See RFC 2132 for details of available options. | : See RFC 2132 for details of available options. | ||
Ligne 184: | Ligne 184: | ||
: run " | : run " | ||
: Note that all the common settings, such as netmask and broadcast address, DNS server and default route, are given sane defaults by dnsmasq. You very likely will not need any dhcp-options. If you use Windows clients and Samba, there are some options which are recommended, | : Note that all the common settings, such as netmask and broadcast address, DNS server and default route, are given sane defaults by dnsmasq. You very likely will not need any dhcp-options. If you use Windows clients and Samba, there are some options which are recommended, | ||
- | | + | |
: Override the default route supplied by dnsmasq, which assumes the router is the same machine as the one running dnsmasq. | : Override the default route supplied by dnsmasq, which assumes the router is the same machine as the one running dnsmasq. | ||
- | | + | |
: Do the same thing, but using the option name | : Do the same thing, but using the option name | ||
- | | + | |
: Override the default route supplied by dnsmasq and send no default route at all. Note that this only works for the options sent by default (1, 3, 6, 12, 28) the same line will send a zero-length option for all other option numbers. | : Override the default route supplied by dnsmasq and send no default route at all. Note that this only works for the options sent by default (1, 3, 6, 12, 28) the same line will send a zero-length option for all other option numbers. | ||
- | | + | |
: Set the NTP time server addresses to 192.168.0.4 and 10.10.0.5 | : Set the NTP time server addresses to 192.168.0.4 and 10.10.0.5 | ||
- | | + | |
: Send DHCPv6 option. Note [] around IPv6 addresses. | : Send DHCPv6 option. Note [] around IPv6 addresses. | ||
- | | + | |
: Send DHCPv6 option for namservers as the machine running | : Send DHCPv6 option for namservers as the machine running | ||
- | | + | |
: Ask client to poll for option changes every six hours. (RFC4242) | : Ask client to poll for option changes every six hours. (RFC4242) | ||
- | | + | |
: Set option 58 client renewal time (T1). Defaults to half of the lease time if not specified. (RFC2132) | : Set option 58 client renewal time (T1). Defaults to half of the lease time if not specified. (RFC2132) | ||
- | | + | |
: Set option 59 rebinding time (T2). Defaults to 7/8 of the lease time if not specified. (RFC2132) | : Set option 59 rebinding time (T2). Defaults to 7/8 of the lease time if not specified. (RFC2132) | ||
- | | + | |
: Set the NTP time server address to be the same machine as is running dnsmasq | : Set the NTP time server address to be the same machine as is running dnsmasq | ||
- | | + | |
: Set the NIS domain name to " | : Set the NIS domain name to " | ||
- | | + | |
: Set the default time-to-live to 50 | : Set the default time-to-live to 50 | ||
- | | + | |
: Set the "all subnets are local" flag | : Set the "all subnets are local" flag | ||
- | | + | |
- | | + | |
: Send the etherboot magic flag and then etherboot options (a string). | : Send the etherboot magic flag and then etherboot options (a string). | ||
- | | + | |
: Specify an option which will only be sent to the " | : Specify an option which will only be sent to the " | ||
: Note that the tag: part must precede the option: part. | : Note that the tag: part must precede the option: part. | ||
- | | + | |
: set up dnsmasq in the same way as is specified for the ISC dhcpcd in http:// | : set up dnsmasq in the same way as is specified for the ISC dhcpcd in http:// | ||
- | | + | |
: option ip-forwarding off | : option ip-forwarding off | ||
- | | + | |
: set netbios-over-TCP/ | : set netbios-over-TCP/ | ||
- | | + | |
: netbios datagram distribution server | : netbios datagram distribution server | ||
- | | + | |
: netbios node type | : netbios node type | ||
- | | + | |
: Send an empty WPAD option. This may be REQUIRED to get windows 7 to behave. | : Send an empty WPAD option. This may be REQUIRED to get windows 7 to behave. | ||
- | | + | |
: Send RFC-3397 DNS domain search DHCP option. WARNING: Your DHCP client probably doesn' | : Send RFC-3397 DNS domain search DHCP option. WARNING: Your DHCP client probably doesn' | ||
- | | + | |
: Send RFC-3442 classless static routes (note the netmask encoding) | : Send RFC-3442 classless static routes (note the netmask encoding) | ||
- | | + | |
: Send vendor-class specific options encapsulated in DHCP option 43. | : Send vendor-class specific options encapsulated in DHCP option 43. | ||
: The meaning of the options is defined by the vendor-class so options are sent only when the client supplied vendor class matches the class given here. (A substring match is OK, so " | : The meaning of the options is defined by the vendor-class so options are sent only when the client supplied vendor class matches the class given here. (A substring match is OK, so " | ||
- | | + | |
: Send microsoft-specific option to tell windows to release the DHCP lease when it shuts down. Note the " | : Send microsoft-specific option to tell windows to release the DHCP lease when it shuts down. Note the " | ||
- | | + | |
: Send the Encapsulated-vendor-class ID needed by some configurations of Etherboot to allow is to recognise the DHCP server. | : Send the Encapsulated-vendor-class ID needed by some configurations of Etherboot to allow is to recognise the DHCP server. | ||
- | | + | |
: | : | ||
- | | + | |
: Send options to PXELinux. Note that we need to send the options even though they don't appear in the parameter request list, so we need to use dhcp-option-force here. See http:// | : Send options to PXELinux. Note that we need to send the options even though they don't appear in the parameter request list, so we need to use dhcp-option-force here. See http:// | ||
- | | + | |
: Configuration file name | : Configuration file name | ||
- | | + | |
: Path prefix | : Path prefix | ||
- | | + | |
: Reboot time. (Note ' | : Reboot time. (Note ' | ||
- | | + | |
: | : | ||
- | | + | |
: Set the boot filename for netboot/ | : Set the boot filename for netboot/ | ||
- | | + | |
: The same as above, but use custom tftp-server instead machine running dnsmasq | : The same as above, but use custom tftp-server instead machine running dnsmasq | ||
- | | + | |
: The idea is to send two different filenames, the first loads iPXE, and the second tells iPXE what to load. The dhcp-match sets the ipxe tag for requests from iPXE. | : The idea is to send two different filenames, the first loads iPXE, and the second tells iPXE what to load. The dhcp-match sets the ipxe tag for requests from iPXE. | ||
- | | + | |
: | : | ||
- | | + | |
: | : | ||
- | | + | |
: | : | ||
- | | + | |
: All the options are encapsulated within option 175 | : All the options are encapsulated within option 175 | ||
- | | + | |
: priority code | : priority code | ||
- | | + | |
: no-proxydhcp | : no-proxydhcp | ||
- | | + | |
: bus-id | : bus-id | ||
- | | + | |
: BIOS drive code | : BIOS drive code | ||
- | | + | |
: iSCSI username | : iSCSI username | ||
- | | + | |
: iSCSI password | : iSCSI password | ||
- | | + | |
: Test for the architecture of a netboot client. | : Test for the architecture of a netboot client. | ||
: PXE clients are supposed to send their architecture as option 93. (See RFC 4578) | : PXE clients are supposed to send their architecture as option 93. (See RFC 4578) | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
: | : | ||
- | | + | |
: Do real PXE, rather than just booting a single file, this is an alternative to dhcp-boot. | : Do real PXE, rather than just booting a single file, this is an alternative to dhcp-boot. | ||
- | | + | |
: or with timeout before first available action is taken: | : or with timeout before first available action is taken: | ||
- | | + | |
: | : | ||
- | | + | |
: Available boot services. for PXE. | : Available boot services. for PXE. | ||
- | | + | |
: Loads < | : Loads < | ||
- | | + | |
: Loads < | : Loads < | ||
: Beware this fails on old PXE ROMS. | : Beware this fails on old PXE ROMS. | ||
- | | + | |
: Use bootserver on network, found my multicast or broadcast. | : Use bootserver on network, found my multicast or broadcast. | ||
- | | + | |
: Use bootserver at a known IP address. | : Use bootserver at a known IP address. | ||
- | | + | |
: If you have multicast-FTP available, information for that can be passed in a similar way using options 1 to 5. See page 19 of http:// | : If you have multicast-FTP available, information for that can be passed in a similar way using options 1 to 5. See page 19 of http:// | ||
- | | + | |
: Enable dnsmasq' | : Enable dnsmasq' | ||
- | | + | |
: Set the root directory for files available via FTP. | : Set the root directory for files available via FTP. | ||
- | | + | |
: Do not abort if the tftp-root is unavailable | : Do not abort if the tftp-root is unavailable | ||
- | | + | |
: Make the TFTP server more secure: with this set, only files owned by the user dnsmasq is running as will be send over the net. | : Make the TFTP server more secure: with this set, only files owned by the user dnsmasq is running as will be send over the net. | ||
- | | + | |
: This option stops dnsmasq from negotiating a larger blocksize for TFTP transfers. It will slow things down, but may rescue some broken TFTP clients. | : This option stops dnsmasq from negotiating a larger blocksize for TFTP transfers. It will slow things down, but may rescue some broken TFTP clients. | ||
- | | + | |
: | : | ||
- | | + | |
: Set the boot file name only when the " | : Set the boot file name only when the " | ||
- | | + | |
: An example of dhcp-boot with an external TFTP server: the name and IP address of the server are given after the filename. | : An example of dhcp-boot with an external TFTP server: the name and IP address of the server are given after the filename. | ||
: Can fail with old PXE ROMS. Overridden by --pxe-service. | : Can fail with old PXE ROMS. Overridden by --pxe-service. | ||
- | | + | |
: If there are multiple external tftp servers having a same name (using /etc/hosts) then that name can be specified as the tftp_servername (the third option to dhcp-boot) and in that case dnsmasq resolves this name and returns the resultant IP addresses in round robin fashion. This facility can be used to load balance the tftp load among a set of servers. | : If there are multiple external tftp servers having a same name (using /etc/hosts) then that name can be specified as the tftp_servername (the third option to dhcp-boot) and in that case dnsmasq resolves this name and returns the resultant IP addresses in round robin fashion. This facility can be used to load balance the tftp load among a set of servers. | ||
- | | + | |
: | : | ||
- | | + | |
: Set the limit on DHCP leases, the default is 150 | : Set the limit on DHCP leases, the default is 150 | ||
- | | + | |
: The DHCP server needs somewhere on disk to keep its lease database. | : The DHCP server needs somewhere on disk to keep its lease database. | ||
: This defaults to a sane location, but if you want to change it, use the line below. | : This defaults to a sane location, but if you want to change it, use the line below. | ||
- | | + | |
: Set the DHCP server to authoritative mode. In this mode it will barge in and take over the lease for any client which broadcasts on the network, whether it has a record of the lease or not. This avoids long timeouts when a machine wakes up on a new network. DO NOT enable this if there' | : Set the DHCP server to authoritative mode. In this mode it will barge in and take over the lease for any client which broadcasts on the network, whether it has a record of the lease or not. This avoids long timeouts when a machine wakes up on a new network. DO NOT enable this if there' | ||
- | | + | |
: Set the DHCP server to enable DHCPv4 Rapid Commit Option per RFC 4039. | : Set the DHCP server to enable DHCPv4 Rapid Commit Option per RFC 4039. | ||
: In this mode it will respond to a DHCPDISCOVER message including a Rapid Commit option with a DHCPACK including a Rapid Commit option and fully committed address and configuration information. This must only be enabled if either the server is the only server for the subnet, or multiple servers are present and they each commit a binding for all clients. | : In this mode it will respond to a DHCPDISCOVER message including a Rapid Commit option with a DHCPACK including a Rapid Commit option and fully committed address and configuration information. This must only be enabled if either the server is the only server for the subnet, or multiple servers are present and they each commit a binding for all clients. | ||
- | | + | |
: Run an executable when a DHCP lease is created or destroyed. | : Run an executable when a DHCP lease is created or destroyed. | ||
: The arguments sent to the script are " | : The arguments sent to the script are " | ||
- | | + | |
: Set the cachesize here. | : Set the cachesize here. | ||
- | | + | |
: If you want to disable negative caching, uncomment this. | : If you want to disable negative caching, uncomment this. | ||
- | | + | |
| | ||
- | | + | |
: If you want dnsmasq to detect attempts by Verisign to send queries to unregistered .com and .net hosts to its sitefinder service and have dnsmasq instead return the correct NXDOMAIN response, uncomment this line. You can add similar lines to do the same for other registries which have implemented wildcard A records. | : If you want dnsmasq to detect attempts by Verisign to send queries to unregistered .com and .net hosts to its sitefinder service and have dnsmasq instead return the correct NXDOMAIN response, uncomment this line. You can add similar lines to do the same for other registries which have implemented wildcard A records. | ||
- | | + | |
: If you want to fix up DNS results from upstream servers, use the alias option. This only works for IPv4. | : If you want to fix up DNS results from upstream servers, use the alias option. This only works for IPv4. | ||
- | | + | |
: This alias makes a result of 1.2.3.4 appear as 5.6.7.8 | : This alias makes a result of 1.2.3.4 appear as 5.6.7.8 | ||
- | | + | |
: and this maps 1.2.3.x to 5.6.7.x | : and this maps 1.2.3.x to 5.6.7.x | ||
- | | + | |
: and this maps 192.168.0.10-> | : and this maps 192.168.0.10-> | ||
- | | + | |
: Change these lines if you want dnsmasq to serve MX records. | : Change these lines if you want dnsmasq to serve MX records. | ||
- | | + | |
: Return an MX record named " | : Return an MX record named " | ||
- | | + | |
: Set the default target for MX records created using the localmx option. | : Set the default target for MX records created using the localmx option. | ||
- | | + | |
: Return an MX record pointing to the mx-target for all local machines. | : Return an MX record pointing to the mx-target for all local machines. | ||
- | | + | |
: Return an MX record pointing to itself for all local machines. | : Return an MX record pointing to itself for all local machines. | ||
- | | + | |
: Change the following lines if you want dnsmasq to serve SRV records. These are useful if you want to serve ldap requests for Active Directory and other windows-originated DNS requests. | : Change the following lines if you want dnsmasq to serve SRV records. These are useful if you want to serve ldap requests for Active Directory and other windows-originated DNS requests. | ||
: See RFC 2782. | : See RFC 2782. | ||
Ligne 371: | Ligne 371: | ||
: The fields are < | : The fields are < | ||
: If the domain part if missing from the name (so that is just has the service and protocol sections) then the domain given by the domain= config option is used. (Note that expand-hosts does not need to be set for this to work.) | : If the domain part if missing from the name (so that is just has the service and protocol sections) then the domain given by the domain= config option is used. (Note that expand-hosts does not need to be set for this to work.) | ||
- | | + | |
: A SRV record sending LDAP for the example.com domain to ldapserver.example.com port 389 | : A SRV record sending LDAP for the example.com domain to ldapserver.example.com port 389 | ||
- | | + | |
: A SRV record sending LDAP for the example.com domain to ldapserver.example.com port 389 (using domain=) | : A SRV record sending LDAP for the example.com domain to ldapserver.example.com port 389 (using domain=) | ||
- | | + | |
: Two SRV records for LDAP, each with different priorities | : Two SRV records for LDAP, each with different priorities | ||
- | | + | |
: A SRV record indicating that there is no LDAP server for the domain example.com | : A SRV record indicating that there is no LDAP server for the domain example.com | ||
- | | + | |
: The following line shows how to make dnsmasq serve an arbitrary PTR record. This is useful for DNS-SD. (Note that the domain-name expansion done for SRV records _does_not occur for PTR records.) | : The following line shows how to make dnsmasq serve an arbitrary PTR record. This is useful for DNS-SD. (Note that the domain-name expansion done for SRV records _does_not occur for PTR records.) | ||
- | | + | |
: Change the following lines to enable dnsmasq to serve TXT records. | : Change the following lines to enable dnsmasq to serve TXT records. | ||
: These are used for things like SPF and zeroconf. (Note that the domain-name expansion done for SRV records _does_not occur for TXT records.) | : These are used for things like SPF and zeroconf. (Note that the domain-name expansion done for SRV records _does_not occur for TXT records.) | ||
- | | + | |
: Example SPF. | : Example SPF. | ||
- | | + | |
: Example zeroconf | : Example zeroconf | ||
- | | + | |
: Provide an alias for a " | : Provide an alias for a " | ||
- | | + | |
: For debugging purposes, log each DNS query as it passes through dnsmasq. | : For debugging purposes, log each DNS query as it passes through dnsmasq. | ||
- | | + | |
: Log lots of extra information about DHCP transactions. | : Log lots of extra information about DHCP transactions. | ||
- | | + | |
- | | + | |
: Include another lot of configuration options. | : Include another lot of configuration options. | ||
- | | + | |
: Include all the files in a directory except those ending in .bak | : Include all the files in a directory except those ending in .bak | ||
- | | + | |
: Include all files in a directory which end in .conf | : Include all files in a directory which end in .conf | ||
- | | + | |
- | | + | |
: If a DHCP client claims that its name is " | : If a DHCP client claims that its name is " | ||
: This fixes a security hole. see CERT Vulnerability VU#598349 | : This fixes a security hole. see CERT Vulnerability VU#598349 |