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édenteProchaine révisionLes deux révisions suivantes | ||
logiciel:internet:dnsmasq:dnsmasq.conf [2020/11/06 10:22] – [Options] admin | logiciel:internet:dnsmasq:dnsmasq.conf [2020/11/06 10:45] – [Options] admin | ||
---|---|---|---|
Ligne 336: | Ligne 336: | ||
: 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. | ||
- | + | ? dhcp-script=/ | |
- | # Run an executable when a DHCP lease is created or destroyed. | + | : |
- | # The arguments sent to the script are " | + | : |
- | # then the MAC address, the IP address and finally the hostname | + | ? cache-size=150 |
- | # if there is one. | + | : |
- | #dhcp-script=/bin/echo | + | ? no-negcache |
- | + | : | |
- | # Set the cachesize here. | + | ? local-ttl= |
- | #cache-size=150 | + | |
- | + | ? bogus-nxdomain=64.94.110.11 | |
- | # If you want to disable negative caching, uncomment this. | + | : |
- | #no-negcache | + | ? alias |
- | + | : | |
- | # Normally responses which come from /etc/hosts and the DHCP lease | + | ? alias=1.2.3.4, |
- | # file have Time-To-Live set as zero, which conventionally means | + | : This alias makes a result of 1.2.3.4 appear as 5.6.7.8 |
- | # do not cache further. If you are happy to trade lower load on the | + | ? |
- | # server for potentially stale date, you can set a time-to-live (in | + | : |
- | # seconds) here. | + | ? |
- | #local-ttl= | + | : |
- | + | ? MX records | |
- | # If you want dnsmasq to detect attempts by Verisign to send queries | + | : |
- | # to unregistered .com and .net hosts to its sitefinder service and | + | ? mx-host=maildomain.com, |
- | # 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. | + | : |
- | # | + | ? localmx |
- | + | : | |
- | # If you want to fix up DNS results from upstream servers, use the | + | ? selfmx |
- | # alias option. This only works for IPv4. | + | : |
- | # This alias makes a result of 1.2.3.4 appear as 5.6.7.8 | + | ? srv-host |
- | #alias=1.2.3.4,5.6.7.8 | + | : |
- | # and this maps 1.2.3.x to 5.6.7.x | + | : |
- | #alias=1.2.3.0,5.6.7.0, | + | : |
- | # and this maps 192.168.0.10-> | + | : |
- | # | + | : |
- | + | ? srv-host=_ldap._tcp.example.com, | |
- | # Change these lines if you want dnsmasq to serve MX records. | + | : |
- | + | ? domain=example.com\\ | |
- | # Return an MX record named " | + | : |
- | # servermachine.com and preference 50 | + | ? |
- | #mx-host=maildomain.com, | + | : Two SRV records for LDAP, each with different priorities |
- | + | ? srv-host=_ldap._tcp.example.com | |
- | # Set the default target for MX records created using the localmx option. | + | : |
- | # | + | ? ptr-record=_http._tcp.dns-sd-services," |
- | + | : | |
- | # Return an MX record pointing to the mx-target for all local | + | ? txt-record |
- | # machines. | + | : |
- | #localmx | + | : |
- | + | ? | |
- | # Return an MX record pointing to itself for all local machines. | + | : |
- | #selfmx | + | ? |
- | + | : Example zeroconf | |
- | # Change the following lines if you want dnsmasq to serve SRV | + | ? cname=bertand, |
- | # records. | + | : Provide an alias for a " |
- | # Active Directory and other windows-originated DNS requests. | + | ? log-queries |
- | # See RFC 2782. | + | : |
- | # You may add multiple srv-host lines. | + | ? |
- | # 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 | + | : Include another lot of configuration options. |
- | # set for this to work.) | + | ? conf-dir=/ |
- | + | : Include all the files in a directory except those ending in .bak | |
- | # A SRV record sending LDAP for the example.com domain to | + | ? |
- | # ldapserver.example.com port 389 | + | : |
- | #srv-host=_ldap._tcp.example.com, | + | ? dhcp-name-match=set: |
- | + | ? dhcp-ignore-names=tag: | |
- | # A SRV record sending LDAP for the example.com domain to | + | : |
- | # ldapserver.example.com port 389 (using domain=) | + | : |
- | # | + | |
- | #srv-host=_ldap._tcp, | + | |
- | + | ||
- | # Two SRV records for LDAP, each with different priorities | + | |
- | #srv-host=_ldap._tcp.example.com, | + | |
- | #srv-host=_ldap._tcp.example.com, | + | |
- | + | ||
- | # A SRV record indicating that there is no LDAP server for the domain | + | |
- | # example.com | + | |
- | #srv-host=_ldap._tcp.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.) | + | |
- | #ptr-record=_http._tcp.dns-sd-services," | + | |
- | + | ||
- | # 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.) | + | |
- | + | ||
- | #Example SPF. | + | |
- | #txt-record=example.com," | + | |
- | + | ||
- | #Example | + | |
- | #txt-record=_http._tcp.example.com, | + | |
- | + | ||
- | # Provide an alias for a " | + | |
- | # for targets which are names from DHCP or /etc/hosts. Give host | + | |
- | # " | + | |
- | # | + | |
- | + | ||
- | # For debugging purposes, log each DNS query as it passes through | + | |
- | # dnsmasq. | + | |
- | #log-queries | + | |
- | + | ||
- | # Log lots of extra information about DHCP transactions. | + | |
- | #log-dhcp | + | |
- | + | ||
- | # Include another lot of configuration options. | + | |
- | #conf-file=/ | + | |
- | #conf-dir=/ | + | |
- | + | ||
- | # Include all the files in a directory except those ending in .bak | + | |
- | #conf-dir=/ | + | |
- | + | ||
- | # Include all files in a directory which end in .conf | + | |
- | #conf-dir=/ | + | |
- | + | ||
- | # If a DHCP client claims that its name is " | + | |
- | # This fixes a security hole. see CERT Vulnerability VU#598349 | + | |
- | # | + | |
- | # | + | |
====== Voir aussi ====== | ====== Voir aussi ====== |