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/05 22:58] – [Options] admin | logiciel:internet:dnsmasq:dnsmasq.conf [2020/11/06 10:46] – [Format] admin | ||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
====== Format ====== | ====== Format ====== | ||
- | Une option par ligne | + | Une option par ligne<cli prompt=' |
les options valides sont les mêmes que celles sur la ligne de commande. | les options valides sont les mêmes que celles sur la ligne de commande. | ||
Ligne 315: | Ligne 315: | ||
? tftp-no-blocksize | ? tftp-no-blocksize | ||
: 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. | ||
- | + | ? dhcp-boot | |
- | # Set the boot file name only when the " | + | : |
- | #dhcp-boot=tag:red,pxelinux.red-net | + | ? dhcp-boot=tag: |
- | + | : 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. | + | : |
- | # Can fail with old PXE ROMS. Overridden by --pxe-service. | + | : |
- | #dhcp-boot=/ | + | ? |
- | + | : | |
- | # 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 | + | ? dhcp-lease-max=150 |
- | # 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. | + | : |
- | #dhcp-boot=/ | + | : |
- | + | ? | |
- | # Set the limit on DHCP leases, the default is 150 | + | : |
- | #dhcp-lease-max=150 | + | ? |
- | + | : | |
- | # 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. | + | : |
- | #dhcp-leasefile=/ | + | : |
- | + | ? cache-size=150 | |
- | # 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, | + | ? no-negcache |
- | # 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' | + | ? local-ttl= |
- | # the slightest chance that you might end up accidentally configuring a DHCP | + | |
- | # server for your campus/ | + | ? bogus-nxdomain=64.94.110.11 |
- | # the same option, and this URL provides more information: | + | : |
- | # http:// | + | ? alias |
- | #dhcp-authoritative | + | : |
- | + | ? alias=1.2.3.4, | |
- | # Set the DHCP server to enable DHCPv4 Rapid Commit Option per RFC 4039. | + | : This alias makes a result of 1.2.3.4 appear as 5.6.7.8 |
- | # 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. | + | ? MX records |
- | #dhcp-rapid-commit | + | : |
- | + | ? mx-host=maildomain.com, | |
- | # 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 | + | : |
- | # if there is one. | + | ? localmx |
- | #dhcp-script=/bin/echo | + | : |
- | + | ? selfmx | |
- | # Set the cachesize here. | + | : |
- | #cache-size=150 | + | ? srv-host |
- | + | : | |
- | # If you want to disable negative caching, uncomment this. | + | : |
- | #no-negcache | + | : |
- | + | : | |
- | # Normally responses which come from /etc/hosts and the DHCP lease | + | : |
- | # file have Time-To-Live set as zero, which conventionally means | + | ? srv-host=_ldap._tcp.example.com, |
- | # 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 | + | ? domain=example.com\\ |
- | # seconds) here. | + | : |
- | #local-ttl= | + | ? |
- | + | : Two SRV records for LDAP, each with different priorities | |
- | # If you want dnsmasq to detect attempts by Verisign to send queries | + | ? srv-host=_ldap._tcp.example.com |
- | # to unregistered .com and .net hosts to its sitefinder service and | + | : |
- | # have dnsmasq instead return the correct NXDOMAIN response, uncomment | + | ? ptr-record=_http._tcp.dns-sd-services," |
- | # this line. You can add similar lines to do the same for other | + | : |
- | # registries which have implemented wildcard A records. | + | ? txt-record |
- | # | + | : |
- | + | : | |
- | # 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 | + | ? |
- | #alias=1.2.3.4,5.6.7.8 | + | : Example zeroconf |
- | # and this maps 1.2.3.x to 5.6.7.x | + | ? cname=bertand, |
- | #alias=1.2.3.0,5.6.7.0, | + | : Provide an alias for a " |
- | # and this maps 192.168.0.10-> | + | ? log-queries |
- | # | + | : |
- | + | ? | |
- | # Change these lines if you want dnsmasq to serve MX records. | + | : |
- | + | ? | |
- | # Return an MX record named " | + | ? |
- | # servermachine.com and preference 50 | + | : Include another lot of configuration options. |
- | #mx-host=maildomain.com, | + | ? conf-dir=/ |
- | + | : Include all the files in a directory except those ending in .bak | |
- | # Set the default target for MX records created using the localmx option. | + | ? |
- | # | + | : |
- | + | ? dhcp-name-match=set: | |
- | # Return an MX record pointing to the mx-target for all local | + | ? dhcp-ignore-names=tag: |
- | # machines. | + | : |
- | #localmx | + | : |
- | + | ||
- | # Return an MX record pointing to itself for all local machines. | + | |
- | #selfmx | + | |
- | + | ||
- | # Change the following lines if you want dnsmasq to serve SRV | + | |
- | # records. | + | |
- | # Active Directory and other windows-originated DNS requests. | + | |
- | # 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 | + | |
- | # set for this to work.) | + | |
- | + | ||
- | # A SRV record sending LDAP for the example.com domain to | + | |
- | # ldapserver.example.com port 389 | + | |
- | #srv-host=_ldap._tcp.example.com, | + | |
- | + | ||
- | # 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 ====== |